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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html30
1 files changed, 18 insertions, 12 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 295fb16..5e86c8c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -21,18 +21,18 @@
<meta name="keywords" content="{{ range $key, $value := .Site.Params.keywords }} {{ $value }} {{ end }}">
{{ end }}
-<!-- twitter -->
-<meta name="twitter:card" content="summary" />
-<meta name="twitter:title" content="{{ .Title }}" />
-<meta name="twitter:description" content="{{ .Summary }}" />
+<!-- mathjax -->
+{{ if .Site.Params.enable_mathjax }}
+{{ partial "mathjax.html" . }}
+{{ end }}
<!-- permalink -->
<link rel="canonical" href="{{ .Permalink }}">
-<!-- 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 }}'>
+<!-- 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 }}
@@ -41,7 +41,13 @@
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ end }}
-<!-- mathjax -->
-{{ if .Site.Params.enable_mathjax }}
-{{ partial "mathjax.html" . }}
-{{ 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 }}" />
+