2017-08-27 14:38:42 +00:00
< meta name = "renderer" content = "webkit" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1" / >
< meta http-equiv = "Cache-Control" content = "no-transform" / >
< meta http-equiv = "Cache-Control" content = "no-siteapp" / >
< meta name = "theme-color" content = "#f8f5ec" / >
< meta name = "msapplication-navbutton-color" content = "#f8f5ec" >
< meta name = "apple-mobile-web-app-capable" content = "yes" >
< meta name = "apple-mobile-web-app-status-bar-style" content = "#f8f5ec" >
<!-- author & description & keywords -->
< meta name = "author" content = "{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}" / >
{{- if .Description -}}
< meta name = "description" content = "{{ .Description | safeHTML }}" / >
2018-07-09 17:41:34 +00:00
{{- else if .IsPage -}}
2017-08-27 14:38:42 +00:00
< meta name = "description" content = "{{ .Summary | plainify }}" / >
2018-07-09 17:41:34 +00:00
{{- else if .Site.Params.description -}}
2017-08-27 14:38:42 +00:00
< meta name = "description" content = "{{ .Site.Params.description | safeHTML }}" / >
{{- end -}}
{{- if .Keywords -}}
{{ $length := len .Keywords | add -1 -}}
< meta name = "keywords" content = "{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" / >
2018-07-09 17:41:34 +00:00
{{- else if .Site.Params.keywords -}}
2017-08-27 14:38:42 +00:00
{{ $length := len .Site.Params.keywords | add -1 -}}
< meta name = "keywords" content = "{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" / >
{{- end }}
<!-- baidu & google verification -->
2018-07-06 14:50:37 +00:00
{{ with .Site.Params.baiduVerification }}< meta name = "baidu-site-verification" content = "{{.}}" / > {{ end }}
{{ with .Site.Params.googleVerification }}< meta name = "google-site-verification" content = "{{.}}" / > {{ end }}
2017-08-27 14:38:42 +00:00
<!-- Site Generator -->
2019-09-08 14:45:41 +00:00
< meta name = "generator" content = "Hugo {{ .Site.Hugo.Version }} with theme even" / >
2017-08-27 14:38:42 +00:00
<!-- Permalink & RSSlink -->
< link rel = "canonical" href = "{{ .Permalink }}" / >
2019-09-08 14:17:31 +00:00
{{- with .OutputFormats.Get "RSS" }}
< link href = "{{ .Permalink }}" rel = "alternate" type = "application/rss+xml" title = "{{ $.Site.Title }}" / >
< link href = "{{ .Permalink }}" rel = "feed" type = "application/rss+xml" title = "{{ $.Site.Title }}" / >
2018-07-09 17:41:34 +00:00
{{- end -}}
2017-08-27 14:38:42 +00:00
<!-- Favicon and Touch icons -->
2017-08-30 16:18:22 +00:00
< link rel = "apple-touch-icon" sizes = "180x180" href = "{{ " apple-touch-icon . png " | relURL } } " >
< link rel = "icon" type = "image/png" sizes = "32x32" href = "{{ " favicon-32x32 . png " | relURL } } " >
< link rel = "icon" type = "image/png" sizes = "16x16" href = "{{ " favicon-16x16 . png " | relURL } } " >
< link rel = "manifest" href = "{{ " manifest . json " | relURL } } " >
< link rel = "mask-icon" href = "{{ " safari-pinned-tab . svg " | relURL } } " color = "#5bbad5" >
2017-08-27 14:38:42 +00:00
2017-10-13 13:38:30 +00:00
<!-- debug -->
2018-07-09 17:41:34 +00:00
{{- if .Site.Params.debug -}}
2017-10-13 13:38:30 +00:00
< script src = "https://cdn.jsdelivr.net/npm/eruda@1.2.6/eruda.min.js" integrity = "sha256-Jmz4bc3kp+rRrXX2tGadNBKFLwtzMapr8kHABxSAAP8=" crossorigin = "anonymous" > < / script >
< script > eruda . init ( ) ; < / script >
2018-07-09 17:41:34 +00:00
{{- end -}}
2017-10-13 13:38:30 +00:00
2017-12-20 13:33:05 +00:00
<!-- busuanzi -->
2018-07-09 17:41:34 +00:00
{{- if .Site.Params.busuanzi.enable -}}
2018-11-05 08:15:24 +00:00
< script async src = "//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" > < / script >
2018-07-09 17:41:34 +00:00
{{- end -}}
2017-12-20 13:33:05 +00:00
2017-08-30 16:18:22 +00:00
<!-- Styles -->
2020-04-13 13:18:35 +00:00
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
2020-04-19 18:10:40 +00:00
< link href = "{{ $style.RelPermalink }}" rel = "stylesheet" >
2018-01-31 14:14:48 +00:00
{{ if .Site.Params.publicCDN.enable -}}
2018-07-06 14:50:37 +00:00
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
2017-09-12 15:59:08 +00:00
{{- else -}}
2017-08-30 16:18:22 +00:00
{{ if .Site.Params.fancybox }}< link href = "{{ " lib / fancybox / jquery . fancybox-3 . 1 . 20 . min . css " | relURL } } " rel = "stylesheet" > {{ end }}
2018-07-09 17:41:34 +00:00
{{- end -}}
2017-08-27 14:38:42 +00:00
2018-02-03 13:41:44 +00:00
<!-- custom css -->
2018-07-09 17:41:34 +00:00
{{ range .Site.Params.customCSS -}}
2018-02-03 13:41:44 +00:00
< link rel = "stylesheet" href = "{{ " / css / " | relURL } } { { . } } " >
{{ end }}
2017-08-27 14:38:42 +00:00
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
<!-- Polyfill for old browsers -->
2017-09-17 13:52:46 +00:00
{{ `<!-- [if lte IE 9]>
< script src = "https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js" > < / script >
<![endif]--> ` | safeHTML }}
2017-08-27 14:38:42 +00:00
{{ `<!-- [if lt IE 9]>
2017-09-17 13:52:46 +00:00
< script src = "https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js" > < / script >
< script src = "https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js" > < / script >
2017-08-27 14:38:42 +00:00
<![endif]--> ` | safeHTML }}