aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 03:33:22 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 03:33:22 +0300
commit837476f899f191079cf727648c396d3c5b5084e0 (patch)
tree2615305dc22240e22c3229620859fdf3378418b7
parent593d51c23f0d40327ecc019b7c0bd9dcba8a3175 (diff)
downloadpopov.link-837476f899f191079cf727648c396d3c5b5084e0.tar.xz
popov.link-837476f899f191079cf727648c396d3c5b5084e0.zip
Split useful links
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r--templates/includes/useful_links.html9
-rw-r--r--templates/index.html11
2 files changed, 10 insertions, 10 deletions
diff --git a/templates/includes/useful_links.html b/templates/includes/useful_links.html
new file mode 100644
index 0000000..3661447
--- /dev/null
+++ b/templates/includes/useful_links.html
@@ -0,0 +1,9 @@
+<ul>
+ {% for link in config.extra.links %}
+ <li>
+ <a href="{{ link.url | trim }}" rel="nofollow" target="_blank">{{ link.title | trim }}</a>
+ <span>&mdash;</span>
+ <span>{{ link.description | trim }}</span>
+ </li>
+ {% endfor %}
+</ul> \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index 622551d..29b4aeb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -13,16 +13,7 @@
<section>
<h2>Useful links</h2>
-
- <ul>
- {% for link in config.extra.links %}
- <li>
- <a href="{{ link.url | trim }}" rel="nofollow" target="_blank">{{ link.title | trim }}</a>
- <span>&mdash;</span>
- <span>{{ link.description | trim }}</span>
- </li>
- {% endfor %}
- </ul>
+ {% include 'includes/useful_links.html' %}
</section>
<section>