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 layout: post
comments: true 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] category: [finnish]
tags: tags:
[ [

View File

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

View File

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