diff --git a/_config.yml b/_config.yml index 79bd160..c9ae23c 100644 --- a/_config.yml +++ b/_config.yml @@ -109,3 +109,18 @@ deploy: type: git repo: git@github.com:thislight/thislight.github.io.git branch: master + + +feed: + limit: 20 + order_by: "-date" + tag_dir: "feeds/by-tag" + category_dir: "feeds/by-category" + rss: + enable: true + output: "rss.xml" + atom: + enable: true + output: "atom.xml" + jsonFeed: + enable: false diff --git a/source/_data/theme.yaml b/source/_data/theme.yaml index 4f1ae0a..2e0ed11 100644 --- a/source/_data/theme.yaml +++ b/source/_data/theme.yaml @@ -14,4 +14,22 @@ my_mastodon: "https://mastodon.social/@thislight" footer_links: GitHub: "https://github.com/thislight" - GitLab: "https://gitlab.com/thislight" \ No newline at end of file + GitLab: "https://gitlab.com/thislight" + Feed (Atom): "/atom.xml" + Feed (RSS): "/rss.xml" + +site_rss: + atom: /atom.xml + rss: /rss.xml + +topic_rss: + tag: + prefix: "/feeds/by-tag/" + atom_suffix: /atom.xml + rss_suffix: /rss.xml + name_lowercase: true + category: + prefix: /feeds/by-category/ + atom_suffix: /atom.xml + rss_suffix: /rss.xml + name_lowercase: true \ No newline at end of file diff --git a/themes/cmd/_config.yml b/themes/cmd/_config.yml index c7e0d9f..3a7ac99 100644 --- a/themes/cmd/_config.yml +++ b/themes/cmd/_config.yml @@ -31,3 +31,19 @@ my_mastodon: https://mastodon.example.com/@example footer_links: Link 1: "https://example.org" Link 2: "https://example.com" + +site_rss: + atom: /atom.xml + rss: /rss.xml + +topic_rss: + tag: + prefix: "/feeds/by-tag/" + atom_suffix: /atom.xml + rss_suffix: /rss.xml + name_lowercase: true + category: + prefix: /feeds/by-category/ + atom_suffix: /atom.xml + rss_suffix: /rss.xml + name_lowercase: true diff --git a/themes/cmd/layout/category.swig b/themes/cmd/layout/category.swig index 4724973..d5ae5f0 100644 --- a/themes/cmd/layout/category.swig +++ b/themes/cmd/layout/category.swig @@ -1,21 +1,51 @@ {% extends 'includes/layout.swig' %} +{% import "includes/paginator.swig" as P %} +{% import "includes/tags.swig" as T %} + {% block body %}