2
0
mirror of https://github.com/offen/website.git synced 2024-12-26 06:40:21 +01:00

add rss feed, publish in template

This commit is contained in:
Frederik Ring 2021-03-04 09:33:12 +01:00
parent 9510bee443
commit dcf17840ab
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ SITEURL = os.environ.get('SITEURL', 'https://www.offen.dev')
# RELATIVE_URLS = True
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss.xml'
DELETE_OUTPUT_DIRECTORY = True

View File

@ -32,6 +32,8 @@
{% if OFFEN_ACCOUNT_ID and not no_stats %}
<script async src="https://offen.offen.dev/script.js" data-account-id="{{ OFFEN_ACCOUNT_ID }}"></script>
{% endif %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feeds/all.rss.xml">
<link rel="alternate" type="application/atom+xml" title="Atom" href="/feeds/all.atom.xml">
</head>
{% endblock %}
<body class="{{ template }} f5 rubik lh-copy cclr-fnt-black-mid cclr-bg-black-mid">