A charming Jekyll theme.
jekyll-theme
1---
2layout: default
3---
4
5{%- include blog/categories.html -%}
6
7<article class="post h-entry">
8 <header class="post-header">
9 <a class="post-permalink u-url" href="{{- page.url | absolute_url -}}" rel="bookmark">
10 <time class="post-date dt-published" datetime="{{ page.date | date_to_xmlschema }}">
11 {{- page.date | date: site.date_formats.day -}}
12 </time>
13 </a>
14
15 {%- if page.title and page.title != "" -%}
16 <h1 class="post-title p-name">
17 {{- page.title -}}
18 </h1>
19 {%- assign post_title = page.title -%}
20 {%- elsif page.source -%}
21 {%- assign link_metadata = page.source | metadata -%}
22
23 <h2 class="post-title p-name">
24 {%- if link_metadata.title -%}
25 <cite class="post-title u-in-reply-to h-cite">
26 <a class="post-source-title u-url" href="{{- page.source -}}">
27 {{- link_metadata['og:title'] | default: link_metadata.title | prepend: "↪ " -}}
28 </a>
29 </cite>
30 {%- else -%}
31 <cite class="post-source-title u-in-reply-to h-cite">
32 <a class="post-source u-url p-name" href="{{- page.source -}}">
33 {{- page.source | remove: "https://" | remove: "http://" | prepend: "↪ " -}}
34 </a>
35 </cite>
36 {%- endif -%}
37 </h2>
38 {%- endif -%}
39
40 {%- if page.categories -%}
41 {% for category in page.categories %}
42 {%- assign category_slug = category | slugify: site.slug_mode -%}
43 {%- assign category_url = site.jekyll-archives.permalinks.category | replace: ":name", category_slug -%}
44
45 <a
46 class="post-category category {{ category_slug | prepend: "_" }} p-category"
47 href="{{ category_url | relative_url }}"
48 rel="tag"
49 >
50 {{- category -}}
51 </a>
52 {% endfor %}
53 {%- endif -%}
54 </header>
55
56 <div class="post-content e-content">
57 {{ page.content }}
58 </div>
59
60 {%- if page.author or site.author or page.tags -%}
61 <footer class="post-footer">
62 {%- assign author = page.author -%}
63
64 {%- if site.author -%}
65 {% assign author = site.author %}
66 {%- elsif site.data.authors -%}
67 {%- assign author = site.data.authors[page.author] -%}
68 {%- endif -%}
69
70 <p class="post-author p-author h-card" {% if site.author or site.data.authors.size == 1 -%}hidden{%- endif %}>
71 <span class="post-byline">
72 {{ site.translations.byline }}
73 </span>
74
75 {%- if author.uri -%}
76 <a class="p-name u-url" href="{{- author.uri -}}">
77 {{ author.name }}
78 </a>
79 {%- else -%}
80 <span class="p-name">
81 {{- author -}}
82 </span>
83 {%- endif -%}
84 </p>
85
86 {%- if page.tags -%}
87 <ul class="post-tags">
88 {%- for tag in page.tags -%}
89 {%- assign tag_slug = tag | slugify: site.slug_mode -%}
90 {%- assign tag_url = site.jekyll-archives.permalinks.tag | replace: ":name", tag_slug -%}
91
92 <li class="tag-item">
93 <a class="p-category" href="{{ tag_url }}" rel="tag">
94 {{ tag }}
95 </a>
96 </li>
97 {%- endfor -%}
98 </ul>
99 {%- endif -%}
100 </footer>
101 {%- endif -%}
102
103 {%- include below-post.html -%}
104</article>
105