From ebceb1c3dec8478dbbaa29c7b22d509354c8646d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 24 Apr 2018 20:00:04 +0400 Subject: Collection with additional links Signed-off-by: Valentin Popov --- _data/additional_links.yml | 8 ++++++++ _includes/additional_links.html | 11 +++++++++++ _includes/sociallinks.html | 9 --------- _pages/index.html | 4 ++-- 4 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 _data/additional_links.yml create mode 100644 _includes/additional_links.html delete mode 100644 _includes/sociallinks.html diff --git a/_data/additional_links.yml b/_data/additional_links.yml new file mode 100644 index 0000000..e5fab32 --- /dev/null +++ b/_data/additional_links.yml @@ -0,0 +1,8 @@ +- name: "Example" + url: "http://example" + +- name: "Example" + url: "http://example" + +- name: "Example" + url: "http://example" diff --git a/_includes/additional_links.html b/_includes/additional_links.html new file mode 100644 index 0000000..ddc0c97 --- /dev/null +++ b/_includes/additional_links.html @@ -0,0 +1,11 @@ + diff --git a/_includes/sociallinks.html b/_includes/sociallinks.html deleted file mode 100644 index 0f9cd34..0000000 --- a/_includes/sociallinks.html +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/_pages/index.html b/_pages/index.html index 97f5032..742d8da 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -5,8 +5,8 @@ layout: page {% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} - -{% include sociallinks.html %} + +{% include additional_links.html %} {% for year in postsByYear %}

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

-- cgit v1.2.3