Skip to content

Commit 8680c4b

Browse files
junghansalshedivat
andauthored
add support for impressum page (alshedivat#172)
* add support for impressum page * Update _config.yml Co-authored-by: Maruan <alshedivat@users.noreply.github.com> Co-authored-by: Maruan <alshedivat@users.noreply.github.com>
1 parent c2c0577 commit 8680c4b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ footer_text: >
1717
url: # the base hostname & protocol for your site
1818
baseurl: /al-folio # the subpath of your site, e.g. /blog/
1919
last_updated: false # set to true if you want to display last updated in the footer
20+
impressum_path: # set to path to include impressum link in the footer, use the same path as permalink in a page, helps to conform with EU GDPR
2021

2122
# -----------------------------------------------------------------------------
2223
# Layout

_includes/footer.html

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<div class="container mt-0">
44
&copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}.
55
{{ site.footer_text }}
6+
{% if site.impressum_path %}
7+
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>.
8+
{% endif %}
69
{% if site.last_updated %}
710
Last updated: {{ "now" | date: '%B %d, %Y' }}.
811
{% endif %}
@@ -13,6 +16,9 @@
1316
<div class="container">
1417
&copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}.
1518
{{ site.footer_text }}
19+
{% if site.impressum_path %}
20+
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>.
21+
{% endif %}
1622
{% if site.last_updated %}
1723
Last updated: {{ "now" | date: '%B %d, %Y' }}.
1824
{% endif %}

0 commit comments

Comments
 (0)