diff options
author | wd <wd@wdicc.com> | 2017-03-10 15:07:27 +0300 |
---|---|---|
committer | wd <wd@wdicc.com> | 2017-03-10 15:07:27 +0300 |
commit | a0b32e0b6568b4dc6876773ec2e9cfe6a3f0858f (patch) | |
tree | f67568dcebce150b609e4a5f130f58c145f78d54 | |
parent | 6e47cad4570ec677e1370fe20c58676c85c39628 (diff) |
Fix rsslink
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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"> |