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

github.com/wd/hugo-fabric.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwd <wd@wdicc.com>2017-03-10 15:07:27 +0300
committerwd <wd@wdicc.com>2017-03-10 15:07:27 +0300
commita0b32e0b6568b4dc6876773ec2e9cfe6a3f0858f (patch)
treef67568dcebce150b609e4a5f130f58c145f78d54
parent6e47cad4570ec677e1370fe20c58676c85c39628 (diff)
Fix rsslink
-rw-r--r--README.md3
-rw-r--r--layouts/partials/navigation.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9efc32d..5f3802e 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,9 @@ Put settings below into your config.toml.
post_type = "page" # For archive
archive_post_type = "archives"
+ # According to https://discuss.gohugo.io/t/how-to-access-the-top-level-rsslink-from-a-post/2044, we have to set this ourself
+ site_rsslink = "atom.xml"
+
# social account
github_user = "wd"
twitter_user = "wd"
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
index fe34abd..8b03d31 100644
--- a/layouts/partials/navigation.html
+++ b/layouts/partials/navigation.html
@@ -2,7 +2,7 @@
<li id="ajax"><a href="/index.html">Home</a></li>
<li id="ajax"><a href="/archives/index.html">Archives</a></li>
<li id="ajax"><a href="/tags/index.html">Tags</a></li>
- <li><a href="/atom.xml">RSS</a></li>
+ <li><a href="/{{ .Site.Params.theme.site_rsslink }}">RSS</a></li>
<li>
<div id="dark">
<form action="//www.google.com.hk/search" method="get" accept-charset="UTF-8" id="search">