Skip to content

Commit

Permalink
blog & note index formatting experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed Jun 8, 2024
1 parent 953ce43 commit ef265e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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:
[
Expand Down
17 changes: 7 additions & 10 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@
<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>
5 changes: 3 additions & 2 deletions n/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ <h1>Notes</h1>
<!-- 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 %}

0 comments on commit ef265e9

Please sign in to comment.