Fix: dead links
This commit is contained in:
parent
c2be385d0d
commit
0c23110169
4 changed files with 13 additions and 8 deletions
7
CHANGES
7
CHANGES
|
@ -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
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||
|
|
|
@ -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__])
|
||||
|
||||
|
||||
|
|
|
@ -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))
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue