浏览代码

Add apple touch icon (#381)

* Add \\( and \\[ as mathjax delimiters

* Make it possible to enable katex and mathjax globally in config.toml

* Add apple-touch-icon

* Add default apple touch icon

Co-authored-by: KK <bebound@users.noreply.github.com>
KK 5 年之前
父节点
当前提交
41062e0096
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 二进制
      exampleSite/static/images/apple-touch-icon.png
  2. 3 0
      layouts/_default/baseof.html

二进制
exampleSite/static/images/apple-touch-icon.png


+ 3 - 0
layouts/_default/baseof.html

@@ -83,6 +83,9 @@
     <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
     <link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
 
+    <link rel="apple-touch-icon" href="{{ .Site.Params.touchicon | default "/images/apple-touch-icon.png" | absURL }}">
+    <link rel="apple-touch-icon"  sizes="180x180" href="{{ .Site.Params.touchicon | default "/images/apple-touch-icon.png" | absURL }}">
+
     {{ range .AlternativeOutputFormats -}}
       {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
     {{ end -}}