aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 03:10:04 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 03:10:04 +0300
commit6fb3e475ce2e4140934746df9f010dfd9109031a (patch)
tree3615019bf8f46ab2c4567d811ab0b18529e00868 /templates/index.html
parentb411c947f50fcc08fbae3b6c1b4e5252ddcfaac7 (diff)
downloadpopov.link-6fb3e475ce2e4140934746df9f010dfd9109031a.tar.xz
popov.link-6fb3e475ce2e4140934746df9f010dfd9109031a.zip
Deleted unsafe variables
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/index.html b/templates/index.html
index cf822e1..3edb50d 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,8 +11,8 @@
<ul>
{% for contact in config.extra.contacts %}
<li>
- <span>{{ contact.title | safe }}:</span>
- <a href="{{ contact.url | safe }}" rel="nofollow" target="_blank">{{ contact.name | safe }}</a>
+ <span>{{ contact.title | trim }}:</span>
+ <a href="{{ contact.url | trim }}" rel="nofollow" target="_blank">{{ contact.name | trim }}</a>
</li>
{% endfor %}
</ul>
@@ -24,9 +24,9 @@
<ul>
{% for link in config.extra.links %}
<li>
- <a href="{{ link.url | safe }}" rel="nofollow" target="_blank">{{ link.title | safe }}</a>
+ <a href="{{ link.url | trim }}" rel="nofollow" target="_blank">{{ link.title | trim }}</a>
<span>&mdash;</span>
- <span>{{ link.description | safe }}</span>
+ <span>{{ link.description | trim }}</span>
</li>
{% endfor %}
</ul>
@@ -39,9 +39,9 @@
<ul>
{% for page in blog.pages | slice(end=5) %}
<li>
- <time datetime="{{ page.date | date(format='%+') | safe }}">{{ page.date | date(format='%Y/%m/%d') | safe }}</time>
+ <time datetime="{{ page.date | date(format='%+') | trim }}">{{ page.date | date(format='%Y/%m/%d') | trim }}</time>
<span>&mdash;</span>
- <a href="{{ page.permalink | safe }}">{{ page.title | safe }}</a>
+ <a href="{{ page.permalink | trim }}">{{ page.title | trim }}</a>
</li>
{% endfor %}
</ul>