nasg/singular.html

140 lines
4.2 KiB
HTML
Raw Normal View History

2017-05-23 11:21:10 +01:00
{%- if post.exif -%}
{%- set dctype = "Image" -%}
{%- else -%}
{%- set dctype = "Text" -%}
{%- endif -%}
{% include 'block_header_open.html' %}
{% if post.title %}
<title>{{ post.title }} | {{ site.domain }}</title>
{% else %}
<title>{{ post.name }} | {{ site.domain }}</title>
{% endif %}
2017-06-03 12:07:38 +01:00
<link rel="canonical" href="{{ site.url }}/{{ post.slug }}/" />
2017-05-23 11:21:10 +01:00
<link rel="shortlink" href="{{ site.url }}/{{ post.shortslug }}" />
<meta name="author" content="{{ post.author.name }}">
<meta name="keywords" content="{{ post.tags|join(',') }}">
<meta name="description" content="{{ post.excerpt|default(post.title) }}">
<meta property="og:description" content="{{ post.excerpt|striptags }}" />
<meta property="og:locale" content="{{ post.lang|default(site.lang) }}" />
<meta property="og:site_name" content="{{ site.name }}" />
<meta property="og:title" content="{{ post.title }}" />
<meta property="og:type" content="blog" />
{% if post.modified %}<meta name="og:updated_time" content="{{ post.modified|date("c") }}" />{%endif%}
2017-06-03 12:07:38 +01:00
<meta property="og:url" content="{{ site.url }}/{{ post.shortslug }}/" />
2017-05-23 11:21:10 +01:00
<meta name="DC.Format" content="text/html" />
<meta name="DC.Title" content="{{ post.title }}">
<meta name="DC.Creator" content="{{ post.author.name }}">
<meta name="DC.Description" content="{{ post.excerpt|default(post.title) }}">
<meta name="DC.Date" content="{{ post.published|date("%Y-%m-%d") }}">
<meta name="DC.Type" content="{{ dctype }}">
2017-06-03 12:07:38 +01:00
<meta name="DC.Identifier" content="{{ site.url }}/{{ post.slug }}/">
<meta name="DC.Source" content="{{ site.url }}/{{ post.slug }}/">
2017-05-23 11:21:10 +01:00
<meta name="DC.Language" content="{{ post.lang|default(site.lang) }}">
<meta name="DC.Rights" content="Copyright {{ post.published|date("%Y") }}, {{ post.author.name }} <{{ post.author.email }}>. All rights reserved.">
{% include 'block_header_close.html' %}
<section class="content-body">
<article class="h-entry singular"{% if post and post.lang %} lang="{{ post.lang }}"{% endif %}>
<header>
{% if post.reactions %}
<h1 class="reaction">{% include 'block_reaction.html' %}</h1>
{% elif post.title|length %}
<h1>
2017-06-03 12:07:38 +01:00
<a href="{{ site.url }}/{{ post.slug }}/" title="{{ post.title }}">
2017-05-23 11:21:10 +01:00
<span class="p-name">{{ post.title }}</span>
</a>
</h1>
{% endif %}
{% if 'IT' in post.tags %}
{% if post.updated %}
{% set py = post.updated|date('%Y')|int %}
{% else %}
{% set py = post.published|date('%Y')|int %}
{% endif %}
{% if( "now"|date('%Y')|int - py ) >= 2 %}
<h2 class="old-warning">WARNING: this entry was published in {{ post.published|date('%Y') }}.<br />It might be outdated.</h2>
{% endif %}
{%endif%}
</header>
{% if post.summary %}
2017-05-23 11:21:10 +01:00
<div class="e-summary">
{{ post.sumhtml }}
2017-05-23 11:21:10 +01:00
<br class="clear" />
</div>
{% endif %}
2017-05-23 11:21:10 +01:00
<div class="e-content">
<div class="content-inner">
{{ post.html }}
{% if ( post.exif ) %}
2017-05-23 11:21:10 +01:00
{% include 'block_exif.html' %}
{% endif %}
2017-05-23 11:21:10 +01:00
{% if ( post.syndicate ) %}
2017-05-23 11:21:10 +01:00
{% include 'block_syndicate.html' %}
{% endif %}
2017-05-23 11:21:10 +01:00
</div>
</div>
<footer>
<a class="u-url u-uuid" href="{{ site.url}}/{{ post.slug }}/"></a>
<p class="shorturl">
<a href="{{ site.url }}/{{ post.shortslug }}">{{ site.url }}/{{ post.shortslug }}</a>
</p>
<p class="published">
<time class="dt-published"
datetime="{{ post.published|date("c") }}">
{{ post.published|date("%Y-%m-%d %H:%M") }}
</time>
</p>
{% if post.updated and post.updated != post.published %}
<p class="updated">
<time class="dt-updated"
datetime="{{ post.updated|date("c") }}">
{{ post.updated|date("%Y-%m-%d %H:%M") }}
</time>
</p>
{% endif %}
{% if post.tags %}
<ul class="tags">
{% for tname in post.tags %}
<li>
<a href="{{ site.url }}/tag/{{ tname|slugify }}" class="p-category">{{ tname }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
2017-05-23 11:21:10 +01:00
</footer>
2017-05-26 15:09:16 +01:00
{% if ( post.comments ) %}
{% include 'block_comments.html' %}
{% endif %}
2017-06-03 12:07:38 +01:00
</article>
2017-05-26 15:09:16 +01:00
2017-05-23 11:21:10 +01:00
<aside class="content-note">
<hr />
<p>Want to leave a comment or get in touch? Reply with your own blog using
<a href="http://indiewebcamp.com/webmention">Webmentions</a> or send an
<a href="mailto:{{ post.author.email }}?subject=RE: {{ post.title }}"
>email</a>.
</p>
</aside>
2017-06-02 11:20:47 +01:00
2017-05-23 11:21:10 +01:00
</section>
2017-05-26 15:09:16 +01:00
{% include 'block_footer.html' %}