Browse Source

Fix: dead links

main
Kujiu 1 year ago
parent
commit
0c23110169
Signed by: kujiu
GPG Key ID: ABBB2CAC6855599F
  1. 7
      CHANGES
  2. 2
      setup.py
  3. 2
      sphinx_gemini_builder/__init__.py
  4. 10
      sphinx_gemini_builder/ablog_compatibility.py

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

@ -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",

2
sphinx_gemini_builder/__init__.py

@ -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__])

10
sphinx_gemini_builder/ablog_compatibility.py

@ -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…
Cancel
Save