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

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 2649c1c..dafa8fd 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,12 +4,16 @@
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
- <meta name="viewport" content="width=device-width"> {{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
+ <meta name="viewport" content="width=device-width">
+ {{ with .OutputFormats.Get "RSS" }}
+ <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
+ <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
+ {{ end }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hybrid.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/colors-dark.css">
+
+ {{ partial "head.html" . }}
</head>
<body>