From 9cc4952c6d33b3bdbf42afa25b5f604ffc2951dd Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Add same styling from talks page to blog --- source/_pages/blog.html.twig | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/source/_pages/blog.html.twig b/source/_pages/blog.html.twig index f8c706de..03b8279b 100644 --- a/source/_pages/blog.html.twig +++ b/source/_pages/blog.html.twig @@ -4,25 +4,20 @@ use: - posts --- -{% set activeYear = false %} +

I enjoy writing articles and have written a number of them so far during my career, both to document my own learning as well to act as resources for others.

-{% for post in data.posts %} - {% set postYear = post.date|date('Y') %} +
+
+ {% for talk in data.posts %} +
+

+ + {{ talk.title }} + +

- {% if postYear != activeYear %} - {% if activeYear != false %} - - {% endif %} - - {% set activeYear = postYear %} - -

{{ postYear }}

- -
    - {% endif %} - -
  • - {{ post.title }} - - {{ post.date|date('jS F Y') }} -
  • -{% endfor %} +

    {{ talk.excerpt }}

    +
+ {% endfor %} +
+