diff options
author | Valentin Popov <info@valentineus.link> | 2019-05-03 03:02:31 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2019-05-03 03:02:31 +0300 |
commit | 5668edea38da9fd1cad629db9c768ff19e62e094 (patch) | |
tree | 80f9ecfb2ad32304c61d1f7aecae955d7cf4ecf2 /_pages | |
parent | 515a3ed0a74bdc10861c12f3798b19c3c9ff44f9 (diff) | |
download | popov.link-5668edea38da9fd1cad629db9c768ff19e62e094.tar.xz popov.link-5668edea38da9fd1cad629db9c768ff19e62e094.zip |
Have added new structure sites
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_pages')
-rw-r--r-- | _pages/atom.xml | 1 | ||||
-rw-r--r-- | _pages/index.html | 39 |
2 files changed, 14 insertions, 26 deletions
diff --git a/_pages/atom.xml b/_pages/atom.xml index 3b8bf2f..ef04f9e 100644 --- a/_pages/atom.xml +++ b/_pages/atom.xml @@ -2,7 +2,6 @@ permalink: "atom.xml" layout: compress title: "RSS" -show: true --- <?xml version="1.0" encoding="utf-8"?> diff --git a/_pages/index.html b/_pages/index.html index ffc140d..7ebd809 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -1,33 +1,22 @@ --- -title: "Posts list" permalink: "index.html" layout: page -show: false --- -{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} +{% for post in site.posts %} +<section> + <h4> + <small> + <time datetime="{{ post.date | date_to_xmlschema }}"> + {{ post.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + </time> + </small> -{% for year in postsByYear %} - <section> - <!-- Header --> - <h3>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | slugify }}</h3> + <a href="{{ post.url | relative_url | uri_escape }}"> + {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + </a> + </h4> - <ul> - {% for post in year.items %} - <li> - <!-- Title / Link --> - <a href="{{ post.url | relative_url | uri_escape }}"> - {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} - </a> - - <small> - <!-- Date of publication --> - <time datetime="{{ post.date | date_to_xmlschema }}"> - <em>{{ post.date | date: '- %b %d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</em> - </time> - </small> - </li> - {% endfor %} - </ul> - </section> + <p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</p> +</section> {% endfor %} |