all repos — nasg @ 8b90b3c1d7490119d1f019e02b9840289aba41ee

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
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
{%- if post.exif -%}
{%- set dctype = "Image" -%}
{%- else -%}
{%- set dctype = "Text" -%}
{%- endif -%}
{% include 'block_header_open.html' %}

	{% if post.title %}
	<title>{{ post.title|e }} | {{ site.domain }}</title>
	{% else %}
	<title>{{ post.slug }} | {{ site.domain }}</title>
	{% endif %}

	<meta name="author" content="{{ post.author.name }}">
	<meta name="keywords" content="{{ post.tags|join(',') }}">
	<meta name="description" content="{{ post.summary|e }}">

	<link rel="canonical" href="{{ site.url }}/{{ post.slug }}/" />
	<link rel="shortlink" href="{{ site.url }}/{{ post.shortslug }}" />
	<link rel="license" href="{{ post.license.url }}" />

{% 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>
		{% if post.reactions %}
			<h1 class="reaction">{% include 'block_reaction.html' %}</h1>
		{% elif post.title|length %}
			<h1>
				<a href="/{{ 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 %}

					{% if ( post.exif ) %}
						{% include 'block_exif.html' %}
					{% endif %}

				{{ post.html }}

{% if ( post.syndicate ) %}
	<aside class="syndicate hide">
	{% for url in post.syndicate %}
		<a href="{{ url }}" class="u-syndication"></a>
	{% endfor %}
	</aside>
{% endif %}

			</div>
		</div>

		<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="/tag/{{ tname|slugify }}" rel="tag" class="p-category">{{ tname }}</a>
{% endfor %}
			</p>
{% endif %}
			<p class="shorturl">
				<a href="/{{ post.shortslug }}">{{ site.url }}/{{ post.shortslug }}</a>
			</p>

{% include 'block_author.html' %}
			<p class="hide">
				<a class="u-url u-uuid" rel="bookmark" href="{{ site.url}}/{{ post.slug }}/"></a>
			</p>
		</footer>


{% if ( post.comments ) %}
		<section class="comments h-feed">
			{% if post.replies|length > 0 %}
			<h6 class="comments-replies"><a name="replies"></a>Replies</h6>
			<ol>
				{% for reply in post.replies %}
					<li class="h-entry p-comment">
						<a class="u-url u-uuid" href="{{ site.url }}/{{ site.commentspath }}/{{ reply.fname }}/" name="{{ reply.fname }}"></a>
						<header>
							<p class="p-author h-card">
								{% if reply.author.url %}
									<a class="url u-url" href="{{ reply.author.url }}">
										<span class="p-name fn">{{ reply.author.name }}</span>
									</a>
								{% else %}
									<span class="p-name fn">{{ reply.author.name }}</span>
								{% endif %}
							</p>
							<p>
							<time class="dt-published" datetime="{{ reply.published|date('c') }}">
								{{ reply.published|date('%Y-%m-%d %H:%M') }}
							</time>
							</p>
							{% if reply.source|length > 0 %}
							<p class="reponse_link">
								Read response at:<br />
								<svg class="icon"><use xlink:href="#icon-link"></use></svg>
								<a href="{{ reply.source }}" class="u-repost-of">{{ reply.source }}</a>
							</p>
							{% endif %}
							</p>
						</header>
					</li>
				{% endfor %}
				</ol>
			{% endif %}

			{% if post.reacjis|length > 0 %}
			<h6 class="comments-reacji"><a name="reacji"></a>Reactions</h6>
			<dl>
			{% for reacji, replies in post.reacjis.items() %}
				<dt><a name="{{ reacji }}"></a>{{ reacji }}</dt>
				<dd>
					<ul>
					{% for reply in replies %}
						<li class="p-comment h-entry ">
							<a class="u-url u-uuid" href="/{{ site.commentspath }}/{{ reply.fname }}/" name="{{ reply.fname }}"></a>
							<time class="dt-published" datetime="{{ reply.published|date('c') }}">
								{{ reply.published|date('%Y-%m-%d %H:%M') }}
							</time>
							<span class="p-author h-card">
								{% if reply.author.url %}
									<a class="url u-url" href="{{ reply.author.url }}">
										<span class="p-name fn">{{ reply.author.name }}</span>
									</a>
								{% else %}
									<span class="p-name fn">{{ reply.author.name }}</span>
								{% endif %}
							</span>
							<a href="{{ reply.source }}" class="u-repost-of" title="{{ reply.source }}">
								<svg class="icon"><use xlink:href="#icon-link" /></svg>
							</a>
						</li>
					{% endfor %}
					</ul>
				</dd>
				{% endfor %}
			</dl>
			{% endif %}
		</section>

{% endif %}


	</article>


	<aside class="content-info">
		<p>
{% if post.category == 'photo' %}
			Did you like this photo?<br />
			<a href="{{ post.author.donateurl }}">Thank it with a small donation.</a>
{% elif post.category == 'article' %}
			Did you find this article useful?<br />
			<a href="{{ post.author.donateurl }}">Buy me a coffee, so I can write more like this</a>, or <a href="mailto:{{ post.author.email }}">get in touch</a> if you want my help with something similar.
{% elif post.category == 'journal' %}
			Did you like this entry?<br />
			<a href="{{ post.author.donateurl }}">Encourage me to write more of them.</a>
{% else %}
			Did you like what you read?<br />
			<a href="{{ post.author.donateurl }}">Thank it with a small donation.</a>
{% endif %}
		</p>
	</aside>

	<aside class="content-note">
		<hr />
		<p class="license">
{% if post.category == 'article' %}
			<a rel="license" href="https://creativecommons.org/licenses/by/4.0/" class="hide u-license">CC BY 4.0</a>
			<svg class="icon"><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.category == 'journal' %}
			<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"><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"><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>


		<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' %}