From 67b9379fe7eed288d00d8451678d338f2ad2a835 Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Mon, 31 Jan 2022 11:08:09 +0930 Subject: [PATCH] refactor(blog_post): renamed to article to reflect direction MR !7 --- pages/articles/2014/mdt_setup.md | 2 +- pages/articles/2015/choose_internet_service.md | 2 +- pages/articles/index.md | 2 +- theme-overrides/{blog_post.html => article.html} | 2 +- theme-overrides/{blog_list.html => article_list.html} | 8 ++++---- theme-overrides/home.html | 6 +++--- ...xtended_preview.html => article_extended_preview.html} | 0 .../{blog_metadata.html => article_metadata.html} | 2 +- .../partials/{blog_social.html => article_social.html} | 0 9 files changed, 12 insertions(+), 12 deletions(-) rename theme-overrides/{blog_post.html => article.html} (70%) rename theme-overrides/{blog_list.html => article_list.html} (75%) rename theme-overrides/partials/{blog_extended_preview.html => article_extended_preview.html} (100%) rename theme-overrides/partials/{blog_metadata.html => article_metadata.html} (95%) rename theme-overrides/partials/{blog_social.html => article_social.html} (100%) diff --git a/pages/articles/2014/mdt_setup.md b/pages/articles/2014/mdt_setup.md index 6a7d19c..fdd3160 100644 --- a/pages/articles/2014/mdt_setup.md +++ b/pages/articles/2014/mdt_setup.md @@ -2,7 +2,7 @@ title: How I use Microsoft Deployment Toolkit description: This article is a record of how I setup my Microsoft Deployment Toolkit. There are many ways to set it up. However this is how I do it. date: 2014-09-01 -template: blog_post.html +template: article.html type: blog author: jon about: https://en.wikipedia.org/wiki/Microsoft_Deployment_Toolkit diff --git a/pages/articles/2015/choose_internet_service.md b/pages/articles/2015/choose_internet_service.md index 6ea3f38..6a2f7ac 100644 --- a/pages/articles/2015/choose_internet_service.md +++ b/pages/articles/2015/choose_internet_service.md @@ -2,7 +2,7 @@ title: Choosing an Internet Service description: The Internet has now become a mainstream item within the average Australian home. The Internet has become so ingrained within our daily lives that for those of us that were around when the Internet was born have actually forgotten what life was like without it. I remember when I was growing up that if we wanted to learn about something you would go to the local library or to a family/friends house to look through their Encyclopaedia Britannica which more often than not was at least five years out of date. Believe it or not that was only 15 to 20 years ago. Now if I haven't lost you already and hopefully by the end of this article I have been able to provide you with more insight on being able to choose an Internet service from an ISP with a little more of an understanding of the technology behind that Internet connection. date: 2015-02-25 -template: blog_post.html +template: article.html type: blog author: jon tags: diff --git a/pages/articles/index.md b/pages/articles/index.md index 5cf228b..55fab06 100644 --- a/pages/articles/index.md +++ b/pages/articles/index.md @@ -1,6 +1,6 @@ --- -template: blog_list.html +template: article_list.html title: No Fuss Computing Articles --- diff --git a/theme-overrides/blog_post.html b/theme-overrides/article.html similarity index 70% rename from theme-overrides/blog_post.html rename to theme-overrides/article.html index 387d8c5..8e7125a 100644 --- a/theme-overrides/blog_post.html +++ b/theme-overrides/article.html @@ -2,7 +2,7 @@ {% block content %}

{{ page.title }}

- {% include "partials/blog_metadata.html" %} + {% include "partials/article_metadata.html" %}
{{ page.content }} {% endblock %} diff --git a/theme-overrides/blog_list.html b/theme-overrides/article_list.html similarity index 75% rename from theme-overrides/blog_list.html rename to theme-overrides/article_list.html index 0951f43..8cbb8ab 100644 --- a/theme-overrides/blog_list.html +++ b/theme-overrides/article_list.html @@ -2,18 +2,18 @@ {% block content %} {{ page.content }} - {% set blog_posts = [] %} + {% set article_posts = [] %} {% for page in nav.pages %} {% if page.url.startswith(config.extra.blog.dir) and page.meta.date is defined %} - {{ blog_posts.append( page ) or "" }} + {{ article_posts.append( page ) or "" }} {% endif %} {% endfor %} - {% for page in (blog_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %} + {% for page in (article_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %}

{{ page.title }}


- {% include "partials/blog_metadata.html" %} + {% include "partials/article_metadata.html" %}

{{ page.meta.description }}

diff --git a/theme-overrides/home.html b/theme-overrides/home.html index 801eac9..459d5b5 100644 --- a/theme-overrides/home.html +++ b/theme-overrides/home.html @@ -3,11 +3,11 @@ {% block content %}
{{ page.content }} - {% set blog_posts = [] %} + {% set article_posts = [] %} {% for page in nav.pages %} {% if page.url.startswith(config.extra.blog.dir) and page.meta.date is defined %} - {{ blog_posts.append( page ) or "" }} + {{ article_posts.append( page ) or "" }} {% endif %} {% endfor %} @@ -16,7 +16,7 @@
    - {% for page in (blog_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %} + {% for page in (article_posts|sort(attribute="meta.date", reverse=True))[:config.extra.blog.list_length] %}
  • diff --git a/theme-overrides/partials/blog_extended_preview.html b/theme-overrides/partials/article_extended_preview.html similarity index 100% rename from theme-overrides/partials/blog_extended_preview.html rename to theme-overrides/partials/article_extended_preview.html diff --git a/theme-overrides/partials/blog_metadata.html b/theme-overrides/partials/article_metadata.html similarity index 95% rename from theme-overrides/partials/blog_metadata.html rename to theme-overrides/partials/article_metadata.html index 1f23951..ffbb1b9 100644 --- a/theme-overrides/partials/blog_metadata.html +++ b/theme-overrides/partials/article_metadata.html @@ -10,7 +10,7 @@ {{ config.extra.blog.author }} ยท {% endif %} - {% include "partials/blog_social.html" %} + {% include "partials/article_social.html" %} diff --git a/theme-overrides/partials/blog_social.html b/theme-overrides/partials/article_social.html similarity index 100% rename from theme-overrides/partials/blog_social.html rename to theme-overrides/partials/article_social.html