diff options
author | eatradish <sakiiily@aosc.io> | 2022-04-11 13:06:59 +0800 |
---|---|---|
committer | eatradish <sakiiily@aosc.io> | 2022-04-11 13:06:59 +0800 |
commit | 34af9a3c1df0ebe04e952aa597de6b7d27ba091a (patch) | |
tree | d6e6aa29d7a0d3f39fa75da5800e8caaeae7c889 | |
parent | 9729cd4a91b3244bd4f1d451ca84957e77c666b0 (diff) | |
download | Seje2-34af9a3c1df0ebe04e952aa597de6b7d27ba091a.tar.gz Seje2-34af9a3c1df0ebe04e952aa597de6b7d27ba091a.tar.bz2 Seje2-34af9a3c1df0ebe04e952aa597de6b7d27ba091a.zip |
config.toml: adjust rss link
-rw-r--r-- | config.toml | 3 | ||||
-rw-r--r-- | templates/base.html | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 2a59ecb..54972f0 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,7 @@ base_url = "https://blog.utopiospgere.net" compile_sass = true # What language to use default_language = "zh-tw" +generate_feed = true # Whether to build a search index to be used later on by a JavaScript library @@ -32,7 +33,7 @@ seje_menu_links = [ {url = "/", name = "home"}, {url = "/archives", name = "archives"}, {url = "/about", name = "about"}, - {url = "/rss", name = "rss"}, + {url = "/atom.xml", name = "rss"}, ] [languages.zh-tw.translations] diff --git a/templates/base.html b/templates/base.html index eef6a39..31623a7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,9 @@ <!DOCTYPE html> <html> <head> + {% block rss %} + <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}"> + {% endblock %} {% set sub_title = section.title | default(value=page.title | default(value='')) %} {% if sub_title %} {% set title = sub_title ~ ' - ' ~ trans(key="title") %} |