blog & note index formatting experiment

This commit is contained in:
Aminda Suomalainen 2024-06-08 09:58:19 +03:00
parent 953ce43e30
commit ef265e9d6b
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 11 additions and 13 deletions

View File

@ -1,7 +1,7 @@
---
layout: post
comments: true
title: "Mitä puhelimet tekisivät jos kelloja siirrettäisiin pysyvästi"
title: "Mitä puhelimet tekisivät jos kelloja siirrettäisiin pysyvästi?"
category: [finnish]
tags:
[

View File

@ -17,19 +17,16 @@ robots: noai
<h2 id="in-english">In English</h2>
{% for post in site.categories.english %}
<p>
<em>{{ post.date | date: "%F" }}:</em>
<strong><a href="{{ post.url }}">{{ post.title }}</a></strong>
</p>
{{ post.excerpt | markdownify }} {% endfor %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p>{{ post.date | date: "%F" }}: {{ post.excerpt | strip_html }}</p>
{% endfor %}
</div>
<hr />
<br />
<div lang="fi">
<h2 id="suomeksi">suomeksi</h2>
{% for post in site.categories.finnish %}
<p>
<em>{{ post.date | date: "%F" }}:</em>
<strong><a href="{{ post.url }}">{{ post.title }}</a></strong>
</p>
{{ post.excerpt | markdownify }} {% endfor %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p>{{ post.date | date: "%F" }}: {{ post.excerpt | strip_html }}</p>
{% endfor %}
</div>

View File

@ -32,8 +32,9 @@ robots: noai
<!-- If the page is on the sitemap, I want to publish it here -->
{% assign notes = site.pages | where_exp: "page", "page.path contains 'n/'" %}
{% for note in notes %} {% if note.sitemap == true %}
<h2><a href="{{ note.url }}">{{note.title}}</a></h2>
<p>
<a href="{{ note.url }}">{{ note.url | split: ".html" }} - {{note.title}}</a>
<span class="monospaced">{{ note.url | split: ".html" }}</span> - {{
note.excerpt | strip_html }}
</p>
<p>{{ note.excerpt | strip_html }}</p>
{% endif %} {% endfor %}