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 |
{%- 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 %}
<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.summary|e }}">
<meta property="og:description" content="{{ post.summary|e }}" />
<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 }}/" />
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" >
<meta name="DC.Format" content="text/html" />
<meta name="DC.Title" content="{{ post.title|e }}">
<meta name="DC.Creator" content="{{ post.author.name }}">
<meta name="DC.Description" content="{{ post.summary|e }}">
<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) }}">
<link rel="license" href="{{ post.license.url }}" />
<meta name="DC.Rights" content="{{ post.license.text }} by {{ post.author.name }}">
{% 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>
{% if reply.source|length > 0 %}
<a href="{{ reply.source }}" class="u-repost-of">{{ reply.source }}</a>
{% endif %}
</p>
</header>
<div class="e-content">
{{ reply.html }}
</div>
</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-note">
<hr />
<p class="license">
<a rel="license" href="{{ post.license.url }}" class="hide u-license">{{ post.license.text }}</a>
<svg class="icon"><use xlink:href="#icon-creative-commons" /></svg>
{{ post.license.description }}
</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' %}
|