all repos — nasg @ e9899b3e3301c038e51a7494594640c4eface810

singular.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
{%- 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.slug }} | {{ site.domain }}</title>
	{% endif %}

	<link rel="canonical" href="{{ site.url }}/{{ post.slug }}/" />
	<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%}
	<meta property="og:url" content="{{ site.url }}/{{ post.shortslug }}/" />

	<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 }}">
	<meta name="DC.Identifier" content="{{ site.url }}/{{ post.slug }}/">
	<meta name="DC.Source" content="{{ site.url }}/{{ post.slug }}/">
	<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 hentry singular"{% if post and post.lang %} lang="{{ post.lang }}"{% endif %}>
		<header>
			<p class="hide"><a class="u-url u-uuid" rel="bookmark" href="{{ site.url}}/{{ post.slug }}/"></a></p>
		{% if post.reactions %}
			<h1 class="reaction">{% include 'block_reaction.html' %}</h1>
		{% elif post.title|length %}
			<h1>
				<a href="{{ site.url }}/{{ post.slug }}/" title="{{ post.title }}">
					<span class="entry-title 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 %}
		<div class="e-summary entry-summary">
			{{ post.sumhtml }}
			<br class="clear" />
		</div>
{% endif %}

		<div class="e-content entry-content">
			<div class="content-inner">

{% if ( post.photo ) %}
					{% include 'block_photo.html'  %}
{% endif %}

				{{ post.html }}

{% if ( post.syndicate ) %}
					{% include 'block_syndicate.html'  %}
{% endif %}

			</div>
		</div>

{% if ( post.comments ) %}
{% include 'block_comments.html'  %}
{% endif %}

		<footer>
			<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") }}">
					(updated: {{ post.updated|date("%Y-%m-%d %H:%M") }})
				</time>
			</p>
{% endif %}
{% if post.tags %}
			<p class="tags">
{% for tname in post.tags %}
				#<a href="{{ site.url }}/tag/{{ tname|slugify }}" rel="tag" class="p-category">{{ tname }}</a>
{% endfor %}
			</p>
{% endif %}
			<p class="shorturl">
				<a href="{{ site.url }}/{{ post.shortslug }}">{{ site.url }}/{{ post.shortslug }}</a>
			</p>

		</footer>

	</article>

	<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>

</section>


{% include 'block_footer.html' %}