diff options
author | Valentin Popov <valentin@popov.link> | 2022-11-10 02:46:22 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2022-11-10 02:46:22 +0300 |
commit | b411c947f50fcc08fbae3b6c1b4e5252ddcfaac7 (patch) | |
tree | 28f6eed74de70c3a54d73ef2bcb1653ad6568582 /templates | |
parent | c7beede169f06100a95a82ed7e4e20d49ead5ec1 (diff) | |
download | popov.link-b411c947f50fcc08fbae3b6c1b4e5252ddcfaac7.tar.xz popov.link-b411c947f50fcc08fbae3b6c1b4e5252ddcfaac7.zip |
Added urlencodes subject
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/404.html | 3 | ||||
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/post.html | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/templates/404.html b/templates/404.html index 106ed25..018e6f0 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,7 +6,8 @@ <p>Page not found.</p> <small> - <p>If you see this message, please <a href="mailto:hi@popov.link?subject=I%20found%20a%20broken%20page">let me know</a>.</p> + {% set subject = 'I found a broken page' %} + <p>If you see this message, please <a href="mailto:hi@popov.link?subject={{ subject | urlencode | safe }}">let me know</a>.</p> </small> </div> diff --git a/templates/base.html b/templates/base.html index a8d6c8e..4bd4fa6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,7 +23,7 @@ <header> <nav> {% for link in config.extra.navbar %} - <a href="{{ link.path | safe }}"> {{ link.title | safe }}</a> + <a href="{{ link.path | safe }}">{{ link.title | safe }}</a> {% endfor %} <span> diff --git a/templates/post.html b/templates/post.html index b360fc7..0e0d41b 100644 --- a/templates/post.html +++ b/templates/post.html @@ -9,7 +9,7 @@ <span>Published</span> <time datetime="{{ page.date | date(format='%+') | safe }}">{{ page.date | safe }}</time> <span>|</span> - <a href="mailto:hi@popov.link?subject={{ page.title | safe }}">Feedback</a> + <a href="mailto:hi@popov.link?subject={{ page.title | urlencode | safe }}">Feedback</a> <span>|</span> <a href="{{ page.permalink | safe }}">Permalink</a> </small> |