nasg/templates/Singular.html
Peter Molnar a506d9d18f - added special templates option per category
- changed layout for journal/articles: single page, per year grouping
- adaptimg wide view
2018-03-28 14:19:14 +00:00

146 lines
5 KiB
HTML

{% include 'block_header_open.html' %}
<title>{{ post.title }}</title>
<meta name="author" content="{{ site.author.name }}">
<meta name="keywords" content="{{ post.tags|join(',') }}">
<meta name="description" content="{{ post.description|e }}">
<link rel="canonical" href="{{ site.url }}/{{ post.slug }}/" />
<link rel="shortlink" href="{{ site.url }}/{{ post.shortslug }}" />
<link rel="license" href="{{ post.licence.url }}" />
{% include 'block_header_close.html' %}
<section class="content-body">
<article class="h-entry hentry singular" lang="{{ post.lang }}">
<header>
<h1>{% include 'Singular_title.html' %}</h1>
</header>
{% if post.summary %}
<div class="e-summary entry-summary">
{{ post.summary }}
<br class="clear" />
</div>
{% endif %}
<div class="e-content entry-content">
<div class="content-inner">
{% if post.photo %}
{{ post.photo }}
{% endif %}
{{ post.html }}
</div>
</div>
<footer>
<p class="published">
<time class="dt-published" datetime="{{ post.pubtime }}">{{ post.pubdate }}</time>
</p>
<div class="hide">
{% include 'block_author.html' %}
</div>
<p class="hide">
<a class="u-url u-uuid" rel="bookmark" href="{{ site.url}}/{{ post.slug }}/"></a>
</p>
<p class="license">
{% if post.licence.text == 'CC BY 4.0' %}
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/" class="hide u-license">CC BY 4.0</a>
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg>
Licensed under <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International</a>. You are free to share or republish, even if modified, if you link back here and indicate the modifications, even for commercial use.
{% elif post.licence.text == 'CC BY-NC 4.0' %}
<a rel="license" href="https://creativecommons.org/licenses/by-nc/4.0/" class="hide u-license">CC BY-NC 4.0</a>
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg>
Licensed under <a href="https://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International</a>. You are free to share or republish, even if modified, if you link back here and indicate the modifications, for non commercial use. For commercial use please contact the author.
{% else %}
<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" class="hide u-license">CC BY-NC-ND 4.0</a>
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg>
Licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International</a>. You are free to share if you link back here for non commercial use, but you can't publish any altered versions of it. For commercial use please contact the author.
{% endif %}
</p>
</footer>
<aside class="donation">
<p>
{% if post.category == 'photo' %}
Did you like this photo?<br />Leave a tip! If you're interested in prints, please get in touch.
{% elif post.category == 'article' %}
Did you find this article useful?<br />Buy me a coffee, so I can write more like this.<br />If you want my help for your project, get in touch.
{% elif post.category == 'journal' %}
Did you like this entry?<br />Encourage me to write more of them.
{% else %}
Did you like what you read?<br />Leave a tip!</a>
{% endif %}
</p>
<ul>
{% for method, data in site.tips.items() %}
<li>
<a rel="payment" title="pay {{ site.author.name }} via {{ data.label }} {{ data.value }}" href="{{ data.url }}">
{{ data.value }}
<span class="method">
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-{{ method }}"></use>
</svg>
with {{ data.label }}
</span>
</a>
</li>
{% endfor %}
</ul>
</aside>
{% if post.syndicate|length %}
<section class="syndication">
<!-- <h2><a name="syndication"></a>Syndicated copies</h2>
<ul>
{% for url in post.syndicate %}
<li>
<a href="{{ url }}" class="u-syndication"></a>
</li>
{% endfor %}
</ul>
-->
{% for url in post.syndicate %}
<a href="{{ url }}" class="u-syndication"></a>
{% endfor %}
{% endif %}
{% if post.replies|length %}
<section class="replies">
<h2><a name="replies"></a>Replies</h2>
<ol>
{% for mtime, comment in post.replies %}
{% include 'Comment.html' %}
{% endfor %}
</ol>
</section>
{% endif %}
{% if post.reactions|length %}
<section class="reactions">
<h2><a name="reactions"></a>Reactions</h2>
<dl>
{% for character, comments in post.reactions.items() %}
<dt>{{ character }}</dt>
<dd>
<ul>
{% for mtime, comment in comments %}
{% include 'Comment.html' %}
{% endfor %}
</ul>
</dd>
{% endfor %}
</dl>
</section>
{% endif %}
</article>
</section>
{% include 'block_footer.html' %}