diff --git a/README.md b/README.md index 807be6e..9a72709 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ ![](screenshot.png) -A work in progress port of the [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod) theme by [@adityatelange](https://github.com/adityatelange) to [Zola](https://www.getzola.org/) +A work in progress port of the [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod) theme by [@adityatelange](https://github.com/adityatelange) to [Zola](https://www.getzola.org/) + +Due to config changes introduced with Zola 0.19, only Zola 0.19.1 and later are currently supported. Demo @ https://cydave.github.io/zola-theme-papermod/ @@ -14,6 +16,7 @@ Demo @ https://cydave.github.io/zola-theme-papermod/ + [x] Blog post RSS feeds + [x] Tags + [x] Tag-based RSS feeds ++ [x] Optional: Custom taxonomies + [x] Light / Dark theme switching (with configurable default preference) + [x] Syntax highlighting for code snippets (Zola's built-in syntax highlighting) + [x] Custom navigation @@ -22,7 +25,7 @@ Demo @ https://cydave.github.io/zola-theme-papermod/ + [ ] Home-Info Mode + [ ] Profile Mode + [x] Code copy buttons -+ [ ] Search page ++ [x] Search page + [ ] SEO Metadata + [ ] Language switcher (multi-language support) diff --git a/config.toml b/config.toml index 01152db..eede730 100644 --- a/config.toml +++ b/config.toml @@ -2,8 +2,9 @@ author = "cydave" title = "PaperMod" base_url = "https://cydave.github.io/zola-theme-papermod" compile_sass = true -build_search_index = false -generate_feed = true +build_search_index = true +generate_feeds = true +feed_filenames = [ "atom.xml",] minify_html = true diff --git a/content/archive/_index.md b/content/archive/_index.md index fe83fc0..b1a35cf 100644 --- a/content/archive/_index.md +++ b/content/archive/_index.md @@ -1,4 +1,3 @@ +++ -date = "2023-05-11T00:00:00" template = "archive.html" +++ diff --git a/content/posts/_index.md b/content/posts/_index.md index 790a475..f881c52 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -3,6 +3,6 @@ title = "Posts" sort_by = "date" paginate_by = 5 insert_anchor_links = "right" -generate_feed = true +generate_feeds = true transparent = true +++ diff --git a/content/tags/_index.md b/content/tags/_index.md index f1682b9..18321ef 100644 --- a/content/tags/_index.md +++ b/content/tags/_index.md @@ -1,6 +1,6 @@ +++ title = "Tags" paginate_by = 10 -generate_feed = true +generate_feeds = true +++ diff --git a/templates/partials/head.html b/templates/partials/head.html index eebc9ea..02d69de 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -42,8 +42,10 @@ #} {% endblock %} -{% if config.generate_feed %} - +{% if config.generate_feeds %} +{% for feed_filename in config.feed_filenames %} + +{% endfor %} {% endif %}