refactor(blog_post): renamed to article to reflect direction

MR !7
This commit is contained in:
2022-01-31 11:08:09 +09:30
parent 4c6e73254a
commit 67b9379fe7
9 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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:

View File

@ -1,6 +1,6 @@
---
template: blog_list.html
template: article_list.html
title: No Fuss Computing Articles
---

View File

@ -2,7 +2,7 @@
{% block content %}
<h1>{{ page.title }}</h1>
{% include "partials/blog_metadata.html" %}
{% include "partials/article_metadata.html" %}
<hr>
{{ page.content }}
{% endblock %}

View File

@ -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 %}
<!-- or "" suppresses "None" output-->
{{ 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] %}
<h2><a href="{{ page.url|url }}">{{ page.title }}</a></h2>
<hr>
{% include "partials/blog_metadata.html" %}
{% include "partials/article_metadata.html" %}
<p>
{{ page.meta.description }}
</p>

View File

@ -3,11 +3,11 @@
{% block content %}
<div itemscope itemtype="https://schema.org/WebSite">
{{ 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 %}
<!-- or "" suppresses "None" output-->
{{ blog_posts.append( page ) or "" }}
{{ article_posts.append( page ) or "" }}
{% endif %}
{% endfor %}
@ -16,7 +16,7 @@
<div itemprop="hasPart" itemscope itemtype="https://schema.org/Blog" class="column">
<a itemprop="url" href="articles/index.html"><h2 itemprop="name">Articles</h2></a>
<ul>
{% 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] %}
<li itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<p>
<h3><a itemprop="url" href="{{ page.url|url }}"><span itemprop="name">{{ page.title }}</span></a></h3>

View File

@ -10,7 +10,7 @@
<strong>{{ config.extra.blog.author }}</strong>
·
{% endif %}
{% include "partials/blog_social.html" %}
{% include "partials/article_social.html" %}
</span>
<span>
<span class="twemoji">