Adding upstream version 0.11.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f89f073565
commit
2f2c7f3767
146 changed files with 9553 additions and 0 deletions
9
roots/test-canonical/canonical.rst
Normal file
9
roots/test-canonical/canonical.rst
Normal file
|
@ -0,0 +1,9 @@
|
|||
.. post:: 2021-12-01
|
||||
:tags: Canonical
|
||||
:canonical_link: https://canonical.example.org/foo.html
|
||||
|
||||
Canonical post
|
||||
=============
|
||||
|
||||
This post will get generated, but its [canonical link](https://datatracker.ietf.org/doc/html/rfc6596)
|
||||
in the header will point to ``canonical_link``.
|
18
roots/test-canonical/conf.py
Normal file
18
roots/test-canonical/conf.py
Normal file
|
@ -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
|
2
roots/test-canonical/index.rst
Normal file
2
roots/test-canonical/index.rst
Normal file
|
@ -0,0 +1,2 @@
|
|||
test-external
|
||||
=============
|
11
roots/test-canonical/post.rst
Normal file
11
roots/test-canonical/post.rst
Normal file
|
@ -0,0 +1,11 @@
|
|||
.. post:: 2022-12-01
|
||||
:tags: Foo Tag, BarTag
|
||||
|
||||
Foo Post Title
|
||||
==============
|
||||
|
||||
Foo post description `with link`_.
|
||||
|
||||
Foo post content.
|
||||
|
||||
.. _`with link`: https://example.com
|
4
roots/test-canonical/postlist.rst
Normal file
4
roots/test-canonical/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
========
|
||||
|
||||
.. postlist::
|
Loading…
Add table
Add a link
Reference in a new issue