From 30c54ec5a3a436de0f775ac617c1d70fd4f4ff77 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 23 Jan 2020 19:41:44 +0400 Subject: [PATCH] Updated homepage Signed-off-by: Valentin Popov --- _data/aside_links.yml | 15 --------------- _data/contacts.yml | 7 +++++++ _data/links.yml | 11 +++++++++++ _includes/contacts.html | 19 +++++++++++++++++++ _includes/links.html | 19 +++++++++++++++++++ _includes/posts.html | 18 ++++++++++++++++++ _pages/index.html | 26 +++----------------------- 7 files changed, 77 insertions(+), 38 deletions(-) delete mode 100644 _data/aside_links.yml create mode 100644 _data/contacts.yml create mode 100644 _data/links.yml create mode 100644 _includes/contacts.html create mode 100644 _includes/links.html create mode 100644 _includes/posts.html diff --git a/_data/aside_links.yml b/_data/aside_links.yml deleted file mode 100644 index 43bcd9c..0000000 --- a/_data/aside_links.yml +++ /dev/null @@ -1,15 +0,0 @@ -- name: 'e-mail' - tag: 'info@valentineus.link' - url: 'mailto:info@valentineus.link' - -- name: 'telegram' - tag: '@valentineus' - url: 'https://t.me/valentineus' - -- name: 'github' - tag: '@valentineus' - url: 'https://github.com/valentineus' - -- name: 'pgp' - tag: 'A90A8EA3' - url: '/publickey.txt' diff --git a/_data/contacts.yml b/_data/contacts.yml new file mode 100644 index 0000000..479d0c8 --- /dev/null +++ b/_data/contacts.yml @@ -0,0 +1,7 @@ +- title: "info@valentineus.link" + description: "E-Mail" + url: "mailto:info@valentineus.link" + +- title: "@valentineus" + description: "Telegram" + url: "https://t.me/valentineus" diff --git a/_data/links.yml b/_data/links.yml new file mode 100644 index 0000000..23447af --- /dev/null +++ b/_data/links.yml @@ -0,0 +1,11 @@ +- title: "code.valentineus.link" + description: "Code repositories" + url: "https://code.valentineus.link" + +- title: "@valentineus" + description: "GitHub" + url: "https://github.com/valentineus" + +- title: "@valyaha" + description: "Twitter" + url: "https://twitter.com/valyaha" 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 @@ +

Contacts

+ + + +{% 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 @@ +

Related links

+ + + +{% 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 @@ +

Posts

+ + + +{% assign date = "" %} +{% assign title = "" %} +{% assign url = "" %} diff --git a/_pages/index.html b/_pages/index.html index 2c09cfb..71414c7 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -4,26 +4,6 @@ permalink: "index.html" title: "" --- -{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} - -{% for year in postsByYear %} -
-

{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | slugify }}

- - -
-{% endfor %} +{% include contacts.html %} +{% include links.html %} +{% include posts.html %}