aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-01-23 18:41:44 +0300
committerValentin Popov <info@valentineus.link>2020-01-23 18:42:55 +0300
commit30c54ec5a3a436de0f775ac617c1d70fd4f4ff77 (patch)
treea3583b85d82101b6fdcf086ed5427ee0de3d2a68 /_includes
parentb837e8c89e0c01aed0b6139f699c76d246411ac7 (diff)
downloadpopov.link-30c54ec5a3a436de0f775ac617c1d70fd4f4ff77.tar.xz
popov.link-30c54ec5a3a436de0f775ac617c1d70fd4f4ff77.zip
Updated homepage
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes')
-rw-r--r--_includes/contacts.html19
-rw-r--r--_includes/links.html19
-rw-r--r--_includes/posts.html18
3 files changed, 56 insertions, 0 deletions
diff --git a/_includes/contacts.html b/_includes/contacts.html
new file mode 100644
index 0000000..06df563
--- /dev/null
+++ b/_includes/contacts.html
@@ -0,0 +1,19 @@
+<h2>Contacts</h2>
+
+<ul>
+ {% for contact in site.data.contacts %}
+ <li>
+ {% assign description = contact.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign title = contact.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign url = contact.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
+
+ <a href="{{ url }}" target="_blank">{{ title }}</a>
+ <span>—</span>
+ <span>{{ description }}</span>
+ </li>
+ {% endfor %}
+</ul>
+
+{% assign description = "" %}
+{% assign title = "" %}
+{% assign url = "" %}
diff --git a/_includes/links.html b/_includes/links.html
new file mode 100644
index 0000000..d301161
--- /dev/null
+++ b/_includes/links.html
@@ -0,0 +1,19 @@
+<h2>Related links</h2>
+
+<ul>
+ {% for link in site.data.links %}
+ <li>
+ {% assign description = link.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign title = link.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign url = link.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
+
+ <a href="{{ url }}" target="_blank">{{ title }}</a>
+ <span>—</span>
+ <span>{{ description }}</span>
+ </li>
+ {% endfor %}
+</ul>
+
+{% assign description = "" %}
+{% assign title = "" %}
+{% assign url = "" %}
diff --git a/_includes/posts.html b/_includes/posts.html
new file mode 100644
index 0000000..6dc0d2b
--- /dev/null
+++ b/_includes/posts.html
@@ -0,0 +1,18 @@
+<h2>Posts</h2>
+
+<ul>
+ {% for post in site.posts %}
+ <li>
+ {% assign date = post.date | date: '%d-%m-%Y' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign title = post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
+ {% assign url = post.url | relative_url | uri_escape %}
+
+ <a href="{{ url }}">{{ title }}</a>
+ (<time datetime="{{ post.date | date_to_xmlschema }}">{{ date }}</time>)
+ </li>
+ {% endfor %}
+</ul>
+
+{% assign date = "" %}
+{% assign title = "" %}
+{% assign url = "" %}