extension-workshop/_includes/page-meta-data.html

30 строки
1.3 KiB
HTML

<section class="module meta-data">
<article class="module-content grid-x grid-padding-x">
<div class="cell small-12">
<p><span class="meta-label tags">Tags:</span>&nbsp;
{% for tag in page.tags %}
{% capture tag_name %}{{ tag }}{% endcapture %}
<a href="/tags/?q={{ tag_name | url_encode }}">{{ tag_name }}</a>&nbsp;
{% endfor %}
</p>
<p><span class="meta-label contributors">Contributors:</span>&nbsp;
{% for contributor in page.contributors %}
<a href="https://github.com/{{ contributor }}/" title="View {{ contributor }} on Github">{{ contributor }}</a>&nbsp;
{% endfor %}
</p>
<p><span class="meta-label date">Last update:</span>&nbsp;
{%- if page.author -%}
<a href="https://github.com/{{ page.author }}/" title="View {{ page.author }} on Github" itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></a>&nbsp;
{%- endif -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
</time>
</p>
</div>
</article>
</section>