Skip to content

Commit 44b88c7

Browse files
committed
fix: templates/footer.html
1 parent 3ca8482 commit 44b88c7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

templates/footer.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
&copy; <time datetime="{{now() | date(format='%Y')}}">2020-{{now() | date(format="%Y")}}</time> Jens Haase
33
<a href="{{ get_url(path='@/legal/disclosure.md') }}">Legal Disclosure</a>
44
| <a href="{{ get_url(path='@/legal/data-protection.md') }}">Data protection</a>
5-
| {% if page and page.relative_path != "documentation/api.md" %}
5+
| {% if page and page.relative_path == "documentation/api.md" %}
6+
<span>API docs auto-generated</span>
7+
{% elif section and section.relative_path == "documentation/api.md" %}
8+
<span>API docs auto-generated</span>
9+
{% elif page %}
610
<a href="https://github.com/phel-lang/phel-lang.org/edit/master/content/{{ page.relative_path }}">Edit this page</a>
7-
{% elif section and section.relative_path != "documentation/api.md" %}
11+
{% elif section %}
812
<a href="https://github.com/phel-lang/phel-lang.org/edit/master/content/{{ section.relative_path }}">Edit this page</a>
9-
{% elif ((page and page.relative_path == "documentation/api.md") or (section and section.relative_path == "documentation/api.md")) %}
10-
<span>API docs auto-generated</span>
1113
{% else %}
1214
<a href="https://github.com/phel-lang/phel-lang.org/">Edit this page</a>
1315
{% endif %}

0 commit comments

Comments
 (0)