From bef8762bb59d59c90eaa19d5648d5dd1746df74a Mon Sep 17 00:00:00 2001 From: wd Date: Sat, 30 Sep 2017 11:39:22 +0800 Subject: remove use of rssURI which is deperacted --- README.md | 16 +++++++++++++++- exampleSite/config.toml | 9 ++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bfb21a0..211d9fa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # hugo-fabric -Hugo Fabric Theme, forked from https://github.com/wd/hexo-fabric. You can visit live demo at https://wdicc.com. +Hugo Fabric Theme, forked from https://github.com/wd/hexo-fabric. ![hugo-fabric screenshot](https://raw.githubusercontent.com/wd/hugo-fabric/master/images/tn.png) @@ -28,6 +28,20 @@ theme = "hugo-fabric" Please check the `exampleSite` directory for an example site. +# Hugo settings + +Set rss link name, default is rss.xml. + +``` +[outputs] +home = [ "HTML", "RSS" ] + +[outputFormats] +[outputFormats.RSS] +mediatype = "application/rss" +baseName = "atom" +``` + # Theme settings Put settings below into your config.toml. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8cbce45..47915c4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,7 +3,14 @@ languageCode = "en-us" baseurl = "https://example.org/" title = "Hugo fabric theme" theme = "hugo-fabric" -rssuri = "atom.xml" + +[outputs] +home = [ "HTML", "RSS" ] + +[outputFormats] +[outputFormats.RSS] +mediatype = "application/rss" +baseName = "atom" [params] [params.theme] -- cgit v1.2.3