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 class="halmos">∎</div>
27 </div>
28 {%- if config.extra.for_hire -%}
29 <div class="for-hire">
30 <p>Author of this post is currently open for hire (<a href="/cv">CV</a>).<p>
31 <p>You can contact me at <a href="lukasz@niemier.pl">lukasz@niemier.pl</a></p>
32 </div>
33 {%- endif -%}
34 {%- if page.extra.thanks -%}
35 <hr />
36 <p>
37 <b>Special thanks to</b>:
38 <ul>
39 {%- for person in page.extra.thanks -%}
40 <li class="h-card">{{ posts::thanks(who=person) }}</li>
41 {%- endfor -%}
42 </ul>
43 </p>
44 {%- endif -%}
45 {%- if not page.extra.no_comments -%}
46 <hr />
47 <div>
48 <p>You can provide feedback via mailing list
49 <a href="mailto:~hauleth/blog@lists.sr.ht?subject=[Comment] {{
50 page.title }}">~hauleth/blog@lists.sr.ht</a>
51 (<a href="https://lists.sr.ht/~hauleth/blog">archive</a>).</p>
52 </div>
53
54 <div class="webmentions">
55 {%- set webmentions = load_data(url="https://webmention.io/api/mentions.jf2?target=" ~ page.permalink, format="json") -%}
56 {%- if webmentions.children | length > 0 -%}
57 <p>Webmentions:</p>
58 <ul>
59 {%- for mention in webmentions.children -%}
60 <li>
61 {%- if mention.name -%}
62 <a href="{{ mention.url }}">{{ mention.name }}</a>
63 {%- else -%}
64 <a href="{{ mention.url }}" class="url-only">{{ mention.url }}</a>
65 {%- endif -%}
66 {% if mention.author.name != "" %}
67 by <a href="{{ mention.author.url }}">{{ mention.author.name | truncate(length=15) }}</a>
68 {%- endif -%}
69 </li>
70 {%- endfor -%}
71 </ul>
72 {%- else -%}
73 No webmentions yet, you can be first.
74 {%- endif -%}
75 </div>
76 {%- endif -%}
77 </article>
78{%- endblock main -%}