Welcome to mirror list, hosted at ThFree Co, Russian Federation.

head.html « partials « layouts - github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9af62491bb18b21abcd205b06ee5162c3462092a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE HTML>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}zh-CN{{ end }}">
<head>
  <meta charset="UTF-8">
  <title>{{ if ne .URL "/" }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
  {{ if .Keywords }}<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}">{{ else if eq .URL "/" }}<meta name="keywords" content="{{ .Site.Params.Keywords }}">{{ end }}
  <meta name="description" content="{{ if .Description }}{{ .Description }}{{ else if .IsPage }}{{ .Summary }}{{ else }}{{ .Title }}{{ end }}">
  {{ with .Site.Author.Name }}<meta name="author" content="{{ . }}">{{ end }}
  <meta itemprop="name" content="{{ if ne .URL "/" }}{{ .Title }} - {{ end }}{{ .Site.Title }}">
  <meta itemprop="description" content="{{ if .Description }}{{ .Description }}{{ else if .IsPage }}{{ .Summary }}{{ else }}{{ .Title }}{{ end }}">
  <meta itemprop="image" content="{{ .Site.BaseURL }}img/author.jpg">
  {{ if .Site.Params.Twitter }}<meta name="twitter:card" content="summary" />
  <meta name="twitter:site" content="@{{ .Site.Params.Twitter }}" />
  <meta name="twitter:title" content="{{ if ne .URL "/" }}{{ .Title }} - {{ end }}{{ .Site.Title }}" />{{ end }}
  {{ with .Description }}<meta name="twitter:description" content="{{ . }}" />{{ else }}
  <meta name="twitter:description" content="{{ .Site.Params.Description }}">{{ end }}
  {{ if .RSSlink }}<link rel="alternate" href="{{ .Site.BaseURL }}feed.xml" title="{{ .Site.Title }}" type="application/rss+xml"/>{{ end }}
  <link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico"/>
  <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png" />
  <link rel="apple-touch-icon-precomposed" href="{{ .Site.BaseURL }}apple-touch-icon.png" />
  <link rel="stylesheet" href="{{ .Site.BaseURL }}highlight/styles/github.css">
  <script src="{{ .Site.BaseURL }}highlight/highlight.pack.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript" async
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
  <link rel="stylesheet" href="{{ .Site.BaseURL }}font/hack/css/hack.min.css">
  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
</head>