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">&#x220e;</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</b>: 38 <ul> 39 {%- for person in page.extra.thanks -%} 40 <li class="h-card"> 41 {%- if person is object -%} 42 {%- if person.url -%} 43 <a class="u-url p-name" href="{{ person.url }}">{{ posts::thanks(who=person) }}</a> 44 {%- else -%} 45 <span class="p-name">{{ posts::thanks(who=person) }}</span> 46 {%- endif -%} 47 {%- else -%} 48 <span class="p-name">{{ person }}</span> 49 {%- endif -%} 50 </li> 51 {%- endfor -%} 52 </ul> 53 </p> 54 {%- endif -%} 55 {%- if not page.extra.no_comments -%} 56 <hr /> 57 <div> 58 <p>You can provide feedback via mailing list 59 <a href="mailto:~hauleth/blog@lists.sr.ht?subject=[Comment] {{ 60 page.title }}">~hauleth/blog@lists.sr.ht</a> 61 (<a href="https://lists.sr.ht/~hauleth/blog">archive</a>).</p> 62 </div> 63 64 <div class="webmentions"> 65 {%- set webmentions = load_data(url="https://webmention.io/api/mentions.jf2?target=" ~ page.permalink, format="json") -%} 66 {%- if webmentions.children | length > 0 -%} 67 <p>Webmentions:</p> 68 <ul> 69 {%- for mention in webmentions.children -%} 70 <li> 71 {%- if mention.name -%} 72 <a href="{{ mention.url }}">{{ mention.name }}</a> 73 {%- else -%} 74 <a href="{{ mention.url }}" class="url-only">{{ mention.url }}</a> 75 {%- endif -%} 76 {% if mention.author.name != "" %} 77 by&nbsp;<a href="{{ mention.author.url }}">{{ mention.author.name | truncate(length=15) }}</a> 78 {%- endif -%} 79 </li> 80 {%- endfor -%} 81 </ul> 82 {%- else -%} 83 No webmentions yet, you can be first. 84 {%- endif -%} 85 </div> 86 {%- endif -%} 87 </article> 88{%- endblock main -%}