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:
authorNikhil Nygaard <nik@nygaard.site>2019-05-05 19:11:55 +0300
committerNikhil Nygaard <nik@nygaard.site>2019-05-05 19:11:55 +0300
commit6967fda070e52b5def3a8848c13046307c26fbc2 (patch)
treeb320eb4f8befda3d83e55349b49a4292b7550823
parentcba33be98eb2aa81a8fed587a114d21f59358e29 (diff)
WARN 2019/05/05 08:40:06 Page's .RSSLink is deprecated and will be removed in a future release.
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/social.html5
2 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f31a14b..71ebe53 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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 }}