Skip to content

Commit

Permalink
config.toml: adjust rss link
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Apr 11, 2022
1 parent 9729cd4 commit 34af9a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -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") %}
Expand Down

0 comments on commit 34af9a3

Please sign in to comment.