Make blog post authors an array

This commit is contained in:
RichardG867
2021-12-10 14:11:05 -03:00
parent 74ef99c3fc
commit 5d4b041525
3 changed files with 7 additions and 4 deletions

View File

@@ -11,8 +11,10 @@
{% if page.layout == "post" %}
<meta property="og:type" content="article" />
<meta property="og:published_time" content="{{ page.date | date: "%FT%TZ" }}" />
<meta property="article:author" content="https://github.com/{{ page.author }}" />
<meta property="article:author:username" content="{{ page.author }}" />
{% for author in page.authors %}
<meta property="article:author" content="https://github.com/{{ author }}" />
<meta property="article:author:username" content="{{ author }}" />
{% endfor %}
{% else %}
<meta property="og:type" content="website" />
{% endif %}

View File

@@ -1,5 +1,6 @@
{% if include.post.title == page.title %}<h1>{% else %}<h2><a href="{{ include.post.url }}">{% endif %}
{{ include.post.title }}
{% if include.post.title == page.title %}</h1><span>{% else %}</a></h2><small>{% endif %}
{{ include.post.date | date: "%B %-d, %Y" }} - written by <a href="https://github.com/{{ include.post.author }}">{{ include.post.author }}</a>
{{ include.post.date | date: "%B %-d, %Y" }}
{% for author in include.post.authors %}{% if forloop.first %}- written by{% elsif forloop.last %} and{% else %},{% endif %} <a href="https://github.com/{{ author }}">{{ author }}</a>{% endfor %}
{% if include.post.title == page.title %}</span>{% else %}</small>{% endif %}

View File

@@ -2,7 +2,7 @@
layout: post
title: "86Box v3.0"
description: "86Box v3.0 is here. Check out what's new."
author: "richardg867"
authors: ["richardg867"]
image: "/assets/images/v3.0/hero.png"
---