aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 03:31:53 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 03:31:53 +0300
commit593d51c23f0d40327ecc019b7c0bd9dcba8a3175 (patch)
tree3dcdbe6f3c1d75752c0780b7d9853ca5f9e6652a /templates
parentc51ced082955bef5838f1c373ae361e5c46d6d1f (diff)
downloadpopov.link-593d51c23f0d40327ecc019b7c0bd9dcba8a3175.tar.xz
popov.link-593d51c23f0d40327ecc019b7c0bd9dcba8a3175.zip
Split contacts
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates')
-rw-r--r--templates/includes/contacts.html8
-rw-r--r--templates/index.html9
2 files changed, 9 insertions, 8 deletions
diff --git a/templates/includes/contacts.html b/templates/includes/contacts.html
new file mode 100644
index 0000000..c311bdc
--- /dev/null
+++ b/templates/includes/contacts.html
@@ -0,0 +1,8 @@
+<ul>
+ {% for contact in config.extra.contacts %}
+ <li>
+ <span>{{ contact.title | trim }}:</span>
+ <a href="{{ contact.url | trim }}" rel="nofollow" target="_blank">{{ contact.name | trim }}</a>
+ </li>
+ {% endfor %}
+</ul> \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index 3edb50d..622551d 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -8,14 +8,7 @@
</section>
<section>
- <ul>
- {% for contact in config.extra.contacts %}
- <li>
- <span>{{ contact.title | trim }}:</span>
- <a href="{{ contact.url | trim }}" rel="nofollow" target="_blank">{{ contact.name | trim }}</a>
- </li>
- {% endfor %}
- </ul>
+ {% include 'includes/contacts.html' %}
</section>
<section>