Files
website-template/theme-overrides/article.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

28 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block content %}
<span itemscope itemtype="https://schema.org/CreativeWork">
{% if page.meta.type == "blog" %}
<span itemprop="hasPart" itemscope itemtype="https://schema.org/BlogPosting">
{% elif page.meta.type == "article" %}
<span itemprop="hasPart" itemscope itemtype="https://schema.org/Article">
{% endif %}
<h1 itemprop="name">{{ page.title }}</h1>
{% include "partials/article_metadata.html" %}
<hr>
<span itemprop="text">{{ page.content }}</span>
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization" style="font-size: 10px;">
Published by: <span itemprop="name">{{ config.site_name }}</span>, <span itemprop="url">{{ config.site_url }}</span>
</span>
{% if page.meta.copyrightHolder %}
<br>
<span itemprop="copyrightHolder" itemscope itemtype="https://schema.org/Person" style="font-size: 10px;">
Copyright <span itemprop="name">{{ page.meta.copyrightHolder }}</span>
</span>
{% endif %}
{% if page.meta.type %}</span>{% endif %}
</span>
{% endblock %}