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

head.html « partials « layouts - github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a56411ffaa53da5892c8155e5604e7443a5ecdb0 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<!-- author -->
<meta name="author" content="{{ .Site.Author.name }}">

<!-- description -->
{{ if .Description }}
<meta name="description" content="{{ .Description }}">
{{ else if and .IsPage .Summary }}
<meta name="description" content="{{ .Summary }}">
{{ else }}
<meta name="description" content="{{ .Site.Params.description }}">
{{ end }}

<!-- keywords -->
{{ if .Keywords }}
<meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}">
{{ else }}
<meta name="keywords" content="{{ range $key, $value := .Site.Params.keywords }} {{ $value }} {{ end }}">
{{ end }}

<!-- mathjax -->
{{ if .Site.Params.enableMathjax }}
{{ partial "mathjax.html" . }}
{{ end }}

<!-- permalink -->
<link rel="canonical" href="{{ .Permalink }}">

<!-- rss -->
{{ range .AlternativeOutputFormats -}}
    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

<!-- site title -->
{{ if .IsHome }}
<title>{{ .Site.Title }}</title>
{{ else }}
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ end }}

<!-- style -->
<link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'>
<link media="screen" rel="stylesheet" href='{{ "css/content.css" | absURL }}'>
<link media="screen" rel="stylesheet" href='{{ "css/highlight.css" | absURL }}'>

<!-- twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ .Summary }}" />