diff options
author | Valentin Popov <valentin@popov.link> | 2022-11-10 03:31:53 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2022-11-10 03:31:53 +0300 |
commit | 593d51c23f0d40327ecc019b7c0bd9dcba8a3175 (patch) | |
tree | 3dcdbe6f3c1d75752c0780b7d9853ca5f9e6652a | |
parent | c51ced082955bef5838f1c373ae361e5c46d6d1f (diff) | |
download | popov.link-593d51c23f0d40327ecc019b7c0bd9dcba8a3175.tar.xz popov.link-593d51c23f0d40327ecc019b7c0bd9dcba8a3175.zip |
Split contacts
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r-- | templates/includes/contacts.html | 8 | ||||
-rw-r--r-- | templates/index.html | 9 |
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> |