From 35fb4aa60781e42481b9a4ddc5ca82fe81649cfc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 15 Jan 2019 08:35:49 +0000 Subject: [PATCH] Change blog to articles --- source/{blog.html => articles/archive.html.twig} | 2 +- source/articles/index.html.twig | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) rename source/{blog.html => articles/archive.html.twig} (97%) create mode 100644 source/articles/index.html.twig diff --git a/source/blog.html b/source/articles/archive.html.twig similarity index 97% rename from source/blog.html rename to source/articles/archive.html.twig index a45a6ffdd..ec69942dc 100644 --- a/source/blog.html +++ b/source/articles/archive.html.twig @@ -1,6 +1,6 @@ --- layout: default -title: Blog +title: Archive use: [posts] --- {% block page_title_wrapper %} diff --git a/source/articles/index.html.twig b/source/articles/index.html.twig new file mode 100644 index 000000000..b2f8f8be8 --- /dev/null +++ b/source/articles/index.html.twig @@ -0,0 +1,14 @@ +--- +layout: default +title: Articles +use: [posts] +--- +{% for post in data.posts if post.favourite %} +
+ {% include 'blog/post-summary' %} +
+{% endfor %} + +
+ Archive +