Update language template
This commit is contained in:
parent
3e385cd16c
commit
cf5b22e927
4 changed files with 9 additions and 4 deletions
5
CHANGES
5
CHANGES
|
@ -2,6 +2,11 @@
|
|||
Changes
|
||||
=======
|
||||
|
||||
1.0.6 (*2020-06-03*)
|
||||
====================
|
||||
|
||||
- Fix error in language template...
|
||||
|
||||
1.0.5 (*2020-06-03*)
|
||||
====================
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -27,7 +27,7 @@ with open("README.rst", "r") as fh:
|
|||
|
||||
setup(
|
||||
name="sphinx_nervproject_theme",
|
||||
version="1.0.5",
|
||||
version="1.0.6",
|
||||
url="https://procrastinator.nerv-project.eu/nerv-project/communication/sphinx_nervproject_theme",
|
||||
license="EUPL 1.2",
|
||||
author="Kujiu",
|
||||
|
|
|
@ -5,7 +5,7 @@ from sphinx.environment.collectors import EnvironmentCollector
|
|||
from sphinx import addnodes
|
||||
from sphinx.util.osutil import relative_uri
|
||||
|
||||
__version__ = (1, 0, 5)
|
||||
__version__ = (1, 0, 6)
|
||||
|
||||
|
||||
class SimpleTocTreeCollector(EnvironmentCollector):
|
||||
|
|
|
@ -46,18 +46,18 @@
|
|||
{% endif %}
|
||||
</dd></dl></li>
|
||||
|
||||
{% if post.language %}
|
||||
<li id="language"><dl class="navdl">
|
||||
<dt>{{ gettext('Language') }}</dt>
|
||||
<dd>
|
||||
{% if post.language %}
|
||||
<i class="fa-fw fa fa-language"></i>
|
||||
{% for coll in post.language %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.language|length %},{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.language|length %},{% endif %}{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</dd></dl></li>
|
||||
{% endif %}
|
||||
|
||||
<li id="category"><dl class="navdl">
|
||||
<dt> {{ gettext('Category') }}</dt>
|
||||
|
|
Loading…
Reference in a new issue