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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com>2019-05-05 20:02:18 +0300
committerGitHub <noreply@github.com>2019-05-05 20:02:18 +0300
commit72584c1082df6d6e90178ab989fdc0ddbaba67ff (patch)
tree2708ff9dc3c70fe6c0b7ed6e8c96430c6b77654f
parentcba33be98eb2aa81a8fed587a114d21f59358e29 (diff)
parentd4c1df008725a331eb887b35c393888ff6a68a9b (diff)
Merge pull request #86 from njnygaard/master
Fixing Warnings
-rw-r--r--layouts/partials/head.html7
-rw-r--r--layouts/partials/social.html5
2 files changed, 7 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f31a14b..9e1e4ce 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,7 +2,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
- {{.Hugo.Generator}}
+ {{hugo.Generator}}
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
@@ -36,8 +36,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- RSS -->
- {{ if .RSSLink }}
- <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .RSSLink }}" />
+ {{ if .OutputFormats.Get "RSS" }}
+ <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"
+ href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' />
{{ end }}
{{ with .Site.Params.highlightjs }}
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 33e438d..e57bcba 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -1,9 +1,10 @@
<div class="pure-menu social">
<ul class="pure-menu-list">
- {{ if .RSSLink }}
+ {{ if .OutputFormats.Get "RSS" }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="{{ .RSSLink }}"><i class="fa fa-rss fa-fw"></i>RSS</a>
+ <a class="pure-menu-link" href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}'><i
+ class="fa fa-rss fa-fw"></i>RSS</a>
</li>
{{ end }}