Files
website-template/theme-overrides/partials/article_metadata.html
Jon Lockwood 45e5bd0603 fix(main_website): blog type required
the main website would not build due to requiring the extra.blog
config.

nofusscomputing/infrastructure/website!8 !2
2022-08-29 10:30:53 +09:30

33 lines
1.3 KiB
HTML

<aside class="mdx-author">
{% if config.extra.blog.author_image is defined %}
<p>
<img alt={{ config.extra.blog.author }} src={{ config.extra.blog.author_image }}>
</p>
{% endif %}
<p>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
{% if config.extra.blog.author %}
<strong itemprop="name">{{ config.extra.blog.author }}</strong>
·
{% endif %}
{% include "partials/article_social.html" %}
</span>
<span>
<span class="twemoji">
{% include ".icons/octicons/calendar-24.svg" %}
</span>
<span itemprop="dateCreated">{{ page.meta.date.strftime("%Y-%m-%d") }}</span> ·
{% if page.meta.git_revision_date_localized %}Updated <span itemprop="dateModified">{{ page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "") }}</span> <br>{% endif %}
<span class="twemoji">
{% include ".icons/octicons/clock-24.svg" %}
</span>
<!--Min reading time is 1 minute-->
{% set read_time = page.content | wordcount // config.extra.blog.words_read_per_minute|default(300, true) %}
{% if read_time == 0 %}
{% set read_time = 1 %}
{% endif %}
<span itemprop="timeRequired">{{ read_time }} min </span>read
</span>
</p>
</aside>