Skip to content

Commit

Permalink
blog/index.html: prettier accepted format with date!
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed May 31, 2024
1 parent 1289156 commit ced8b14
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
_includes
_layouts
blog/*.xml
blog/index.html
*.json
47 changes: 22 additions & 25 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,28 @@
robots: noai
---

<ul style="list-style-type: none">
<li>Posts</li>
<li><a lang="en" href="#in-english">In English</a></li>
<li><a lang="fi" href="#suomeksi">suomeksi</a></li>
</ul>

<p>
Posts <a lang="en" href="#in-english">in English here</a> &amp;
<a lang="fi" href="#suomeksi">suomeksi täällä</a>.
</p>
<hr />
<div lang="en">
<h2 id="in-english">In English</h2>

<h2 id="in-english">In English</h2>

<dl>
{% for post in site.categories.english %}
<dt><strong><a href="{{ post.url }}">{{ post.title }}</a></strong></dt>
<dd><em>{{ post.excerpt | strip_html }}</dd>
{% endfor %}
</dl>

</div><div lang="fi">

<h2 id="suomeksi">suomeksi</h2>

<dl>
{% for post in site.categories.finnish %}
<dt><strong><a href="{{ post.url }}">{{ post.title }}</a></strong></dt>
<dd><em>{{ post.excerpt | strip_html }}</dd>
{% endfor %}
</dl>
{% 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 %}
</div>
<hr />
<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 %}
</div>

0 comments on commit ced8b14

Please sign in to comment.