My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: more semantic web

+58 -8
-4
sass/_main.scss
··· 194 194 } 195 195 } 196 196 197 - ol ol { 198 - list-style-type: lower-alpha; 199 - } 200 - 201 197 .container { 202 198 display: flex; 203 199 flex-direction: column;
+54
templates/macros/posts.html
··· 1 + {% macro section_meta(section, author) %} 2 + <div class="post-meta"> 3 + {%- if section.extra["date"] -%} 4 + <time class="post-date" datetime="{{ section.extra["date"] }}"> 5 + {{ section.extra["date"] | date(format="%Y.%m.%d") }} 6 + </time> 7 + {%- endif -%} 8 + </div> 9 + {% endmacro section_meta %} 10 + 11 + {% macro meta(page, author) %} 12 + <div class="post-meta"> 13 + <span class="post-date"> 14 + {%- if page.date -%} 15 + <time class="dt-published" datetime="{{ page.date }}">{{ page.date | date(format="%Y.%m.%d") }}</time> 16 + {%- endif -%} 17 + 18 + {%- if page.updated -%} 19 + [Updated: <time class="dt-updated" datetime="{{ page.updated }}">{{ page.updated | date(format="%Y.%m.%d") }}</time>] 20 + {%- endif -%} 21 + </span> 22 + 23 + {{ posts::taxonomies(taxonomy=page.taxonomies, 24 + disp_cat=config.extra.show_categories, 25 + disp_tag=config.extra.show_tags) }} 26 + </div> 27 + {% endmacro meta %} 28 + 29 + {% macro taxonomies(taxonomy, disp_cat, disp_tag) %} 30 + {%- if taxonomy.categories -%} 31 + {{ posts::categories(categories=taxonomy.categories) }} 32 + {%- endif -%} 33 + {%- if taxonomy.tags -%} 34 + {{ posts::tags(tags=taxonomy.tags) }} 35 + {%- endif -%} 36 + {% endmacro taxonomies %} 37 + 38 + {% macro categories(categories) %} 39 + :: { 40 + {%- for cat in categories -%} 41 + {%- if loop.last -%} 42 + <a class="p-category" href="{{ get_taxonomy_url(kind="categories", name=cat ) }}">{{ cat }}</a> 43 + {%- else -%} 44 + <a class="p-category" href="{{ get_taxonomy_url(kind="categories", name=cat ) }}">{{ cat }}</a>, 45 + {%- endif -%} 46 + {%- endfor -%}}{# <--- NOTE: OPEN CURLY BRACE #} 47 + {% endmacro categories %} 48 + 49 + {% macro tags(tags) %} 50 + :: 51 + {% for tag in tags -%} 52 + #<a class="p-category" href="{{get_taxonomy_url(kind="tags", name=tag )}}">{{ tag }}</a> 53 + {% endfor -%} 54 + {% endmacro tags %}
+4 -4
templates/page.html
··· 7 7 {%- endblock title -%} 8 8 9 9 {%- block main -%} 10 - <div class="post"> 11 - <h1 class="post-title"> 10 + <article class="post h-entry"> 11 + <h1 class="post-title p-name"> 12 12 <a href="{{ page.permalink }}">{{ page.title }}</a> 13 13 </h1> 14 14 {{ posts::meta(page=page, author=config.extra.show_author) }} ··· 21 21 </div> 22 22 </div> 23 23 {%- endif -%} 24 - <div class="post-content"> 24 + <div class="post-content e-content"> 25 25 {{ page.content | safe }} 26 26 </div> 27 27 {% if not page.extra.no_comments %} ··· 33 33 (<a href="https://lists.sr.ht/~hauleth/blog">archive</a>).</p> 34 34 </div> 35 35 {% endif %} 36 - </div> 36 + </article> 37 37 {%- endblock main -%}