aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 03:43:22 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 03:43:22 +0300
commitdcc84806f33a47bda057269fc2e7dc1f62927c7b (patch)
tree0ae01e12a989cbe155a4668bd666a57831a79e11 /templates
parent9daec34648ec5e2c1ad1fd07dde4baabe5e79d2b (diff)
downloadpopov.link-dcc84806f33a47bda057269fc2e7dc1f62927c7b.tar.xz
popov.link-dcc84806f33a47bda057269fc2e7dc1f62927c7b.zip
Made E-Mail a common variable
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates')
-rw-r--r--templates/404.html5
-rw-r--r--templates/post.html3
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/404.html b/templates/404.html
index 9dc8056..48c3f00 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -6,8 +6,9 @@
<p><strong>Page not found.</strong></p>
<small>
- {% set subject = 'I found a broken page' %}
- <p>If you see this message, please <a href="mailto:hi@popov.link?subject={{ subject | trim | urlencode }}">let me know</a>.</p>
+ {% set email = config.extra.author.email | trim %}
+ {% set subject = 'I found a broken page' | trim %}
+ <p>If you see this message, please <a href="mailto:{{ email }}?subject={{ subject | urlencode }}">let me know</a>.</p>
</small>
</div>
diff --git a/templates/post.html b/templates/post.html
index a337d38..e5d1cc7 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -9,7 +9,8 @@
<span>Published</span>
<time datetime="{{ page.date | date(format='%+') | trim }}">{{ page.date | trim }}</time>
<span>|</span>
- <a href="mailto:hi@popov.link?subject={{ page.title | urlencode | trim }}">Feedback</a>
+ {% set email = config.extra.author.email | trim %}
+ <a href="mailto:{{ email }}?subject={{ page.title | urlencode | trim }}">Feedback</a>
<span>|</span>
<a href="{{ page.permalink | trim }}">Permalink</a>
</small>