Files
website/theme-overrides/partials/blog_metadata.html
Jon Lockwood 452fbe1225 feat(blog_post): change location of updated date to be in the social metadata.
Requires the git_revision_date_localized plugin for it to function.

MR !2
2022-01-29 08:43:27 +09:30

33 lines
1.1 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>
{% if config.extra.blog.author %}
<strong>{{ config.extra.blog.author }}</strong>
·
{% endif %}
{% include "partials/blog_social.html" %}
</span>
<span>
<span class="twemoji">
{% include ".icons/octicons/calendar-24.svg" %}
</span>
{{ page.meta.date.strftime("%Y-%m-%d") }} ·
{% if page.meta.git_revision_date_localized %}Updated {{ page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "") }} <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 %}
{{ read_time }} min read
</span>
</p>
</aside>