diff options
author | Daniel Baumann <daniel@debian.org> | 2024-12-12 11:57:01 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 11:57:01 +0100 |
commit | 8e29081b9d01c2e1177adb00224cc04ee4dd7642 (patch) | |
tree | c6b8ad3aab9eacab43fa63160cfbdf2adc1371b5 /roots/test-canonical/conf.py | |
parent | Initial commit. (diff) | |
download | ablog-8e29081b9d01c2e1177adb00224cc04ee4dd7642.tar.xz ablog-8e29081b9d01c2e1177adb00224cc04ee4dd7642.zip |
Adding upstream version 0.11.12.upstream/0.11.12upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'roots/test-canonical/conf.py')
-rw-r--r-- | roots/test-canonical/conf.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roots/test-canonical/conf.py b/roots/test-canonical/conf.py new file mode 100644 index 0000000..a515a6e --- /dev/null +++ b/roots/test-canonical/conf.py @@ -0,0 +1,18 @@ +extensions = ["ablog"] + +# Enable Atom feed generation +blog_baseurl = "https://blog.example.com/" +# Include full post in feeds +blog_feed_fulltext = True +# Add a social media Atom feed +blog_feed_templates = { + # Use defaults, no templates + "atom": {}, + # Create content text suitable posting to micro-bogging + "social": { + # Format tags as hashtags and append to the content + "content": "{{ title }}{% for tag in post.tags %}" " #{{ tag.name|trim()|replace(' ', '') }}" "{% endfor %}", + }, +} +# Sphinx creates canonical links pointing to this base URL by default +html_baseurl = blog_baseurl |