this repo has no description
1{%- extends "index.html" -%}
2
3{%- import "macros/toc.html" as toc -%}
4
5{%- block title -%}
6 <title>{{ page.title }} - {{ config.extra.author }}</title>
7{%- endblock title -%}
8
9{%- block main -%}
10 <article class="post h-entry">
11 <h1 class="post-title p-name">
12 <a id="top" href="{{ page.permalink }}">{{ page.title }}</a>
13 </h1>
14 {{ posts::meta(page=page, author=config.extra.show_author) }}
15 {%- if page.toc | length >= 5 -%}
16 <div class="post-toc">
17 <label for="toc-toggle">Table of content</label>
18 <input type="checkbox" id="toc-toggle" hidden />
19 <div class="toggleable">
20 {{ toc::toc(headers=page.toc) }}
21 </div>
22 </div>
23 {%- endif -%}
24 <div class="post-content e-content">
25 {{ page.content | safe }}
26 </div>
27 {%- if config.extra.for_hire -%}
28 <div class="for-hire">
29 <p>Author of this post is currently open for hire (<a href="/cv">CV</a>).<p>
30 <p>You can contact me at <a href="lukasz@niemier.pl">lukasz@niemier.pl</a></p>
31 </div>
32 {%- endif -%}
33 {%- if page.extra.thanks -%}
34 <hr />
35 <p>
36 <b>Special thanks</b>:
37 <ul>
38 {%- for person in page.extra.thanks -%}
39 <li class="h-card">
40 {%- if person is object -%}
41 {%- if person.url -%}
42 <a class="u-url p-name" href="{{ person.url }}">{{ posts::thanks(who=person) }}</a>
43 {%- else -%}
44 <span class="p-name">{{ posts::thanks(who=person) }}</span>
45 {%- endif -%}
46 {%- else -%}
47 <span class="p-name">{{ person }}</span>
48 {%- endif -%}
49 </li>
50 {%- endfor -%}
51 </ul>
52 </p>
53 {%- endif -%}
54 {%- if not page.extra.no_comments -%}
55 <hr />
56 <div>
57 <p>You can provide feedback via mailing list
58 <a href="mailto:~hauleth/blog@lists.sr.ht?subject=[Comment] {{
59 page.title }}">~hauleth/blog@lists.sr.ht</a>
60 (<a href="https://lists.sr.ht/~hauleth/blog">archive</a>).</p>
61 </div>
62 {%- endif -%}
63
64 <div class="webmentions">
65 {%- set webmentions = load_data(url="https://webmention.io/api/mentions.jf2?target=" ~ page.permalink, format="json") -%}
66 {%- for mention in webmentions.children -%}
67 Foo
68 {%- else -%}
69 No webmentions yet, you can be first.
70 {%- endfor -%}
71 </div>
72 </article>
73{%- endblock main -%}