2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 20:20:24 +02:00

Merge pull request #141 from offen/development

Publish Atom and RSS feeds
This commit is contained in:
Frederik Ring 2021-03-04 09:46:53 +01:00 committed by GitHub
commit 7364a6d920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ from pelican_decorate_content import decorate_content
RELATIVE_URLS = False
AUTHOR = 'offen'
SITENAME = 'offen'
SITENAME = 'Fair Web Analytics | Offen'
PATH = 'content'
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'en'

View File

@ -11,6 +11,8 @@ 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'
RSS_FEED_SUMMARY_ONLY = False
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">