Fix: dead links

This commit is contained in:
Kujiu 2021-02-03 01:07:31 +01:00
parent c2be385d0d
commit 0c23110169
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
4 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,12 @@
Changes
=======
1.1.0 (*2021-02-??*)
1.1.1 (*2021-02-03*)
====================
- Fix dead link in post list
1.1.0 (*2021-02-02*)
====================
- Add ABlog support

View file

@ -28,7 +28,7 @@ with open("README.rst", "r") as fh:
setup(
name="sphinx_gemini_builder",
version="1.1.0",
version="1.1.1",
url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_gemini_builder",
license="EUPL 1.2",
author="Kujiu",

View file

@ -5,7 +5,7 @@
Build Gemini blog from Sphinx.
"""
__version_info__ = (1, 1, 0)
__version_info__ = (1, 1, 1)
__version__ = '.'.join([str(val) for val in __version_info__])

View file

@ -110,31 +110,31 @@ def add_post_to_page(builder, doc: Page, post) -> None:
for author in post.author:
doc.add_link(
builder.config.gemini_baseurl + author.docname,
builder.config.gemini_baseurl + author.docname + builder.out_suffix,
_("Author: %s" % str(author))
)
for location in post.location:
doc.add_link(
builder.config.gemini_baseurl + location.docname,
builder.config.gemini_baseurl + location.docname + builder.out_suffix,
_("Location: %s" % str(location))
)
for language in post.language:
doc.add_link(
builder.config.gemini_baseurl + language.docname,
builder.config.gemini_baseurl + language.docname + builder.out_suffix,
_("Language: %s" % str(language))
)
for category in post.category:
doc.add_link(
builder.config.gemini_baseurl + category.docname,
builder.config.gemini_baseurl + category.docname + builder.out_suffix,
_("Category: %s" % str(category))
)
for tag in post.tags:
doc.add_link(
builder.config.gemini_baseurl + tag.docname,
builder.config.gemini_baseurl + tag.docname + builder.out_suffix,
_("Tag: %s" % str(tag))
)