diff options
author | Valentin Popov <valentin@popov.link> | 2022-11-10 03:33:22 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2022-11-10 03:33:22 +0300 |
commit | 837476f899f191079cf727648c396d3c5b5084e0 (patch) | |
tree | 2615305dc22240e22c3229620859fdf3378418b7 | |
parent | 593d51c23f0d40327ecc019b7c0bd9dcba8a3175 (diff) | |
download | popov.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.html | 9 | ||||
-rw-r--r-- | templates/index.html | 11 |
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>—</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>—</span> - <span>{{ link.description | trim }}</span> - </li> - {% endfor %} - </ul> + {% include 'includes/useful_links.html' %} </section> <section> |