Skip to content

Commit

Permalink
Introduce notes listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed Jun 1, 2024
1 parent 69d7cde commit fec9e65
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
4 changes: 2 additions & 2 deletions _layouts/mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<body>
<div class="page-content">
<div class="wrapper">
<p class="centered"><small><a lang="en" rel="prefetch" href="/">Return to index?</a> <a lang="fi" rel="prefetch" href="/">Palaa etusivulle?</a></small></p>
<p class="centered"><small><a lang="en" rel="prefetch" href="/n/">Return to note index?</a></small></p>
{{ content }}</div>
<p class="centered"><small><a lang="en" rel="prefetch" href="/">Return to index?</a> <a lang="fi" rel="prefetch" href="/">Palaa etusivulle?</a></small></p>
<p class="centered"><small><a lang="en" rel="prefetch" href="/n/">Return to note index?</a></small></p>
{% include ad.html %}
</div>
</body>
Expand Down
41 changes: 41 additions & 0 deletions n/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: default
title: Notes
excerpt: Extra aid for my memory in random subjects. Maybe you are reading this page?
permalink: /n/index.html
redirect_from: /n/n.html
navigation: true
lang: en
sitemap: true
robots: noai
---

<h1>Notes</h1>

<p>
You have discovered my notes listing, where I ramble about random subjects for
future me, so I don't have to rediscover the things again. I tend to access
these with direct link, but for your benefit, they are also listed here.
</p>

<p>
<em
>I won't comment on whether there are secret messy unlisted notes lying
around.</em
>
</p>

<!-- Make a variable containing pages under n/ -->
{% assign notes = site.pages | where_exp: "page", "page.path contains 'n/'" %}

<!-- For loop to go through the contents of the pages -->
{% for note in notes %}
<!-- If the page is on the sitemap, I want to publish it here -->
{% if note.sitemap == true %}

<p>
<a href="{{ note.url }}">{{note.title}}</a>
<em>{{ note.excerpt | markdownify }}</em>

{% endif %} {% endfor %}
</p>
2 changes: 2 additions & 0 deletions n/telegram.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
title: Telegram language links
excerpt: This page contains link lists to change language of Telegram clients.
layout: mini
permalink: /n/telegram.html
redirect_from: /r/telegram.html
Expand Down
23 changes: 1 addition & 22 deletions pages/404.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,4 @@ excerpt: "404, not found, don't bother clicking..."
lang: en
---

<!-- editorconfig-checker-disable -->
<!-- prettier-ignore-start -->

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<em lang="fi">Automaattinen sisällysluettelo</em> / <em lang="en">Automatically generated Table of Contents</em>

- [Guesses what you might have been looking for?](#guesses-what-you-might-have-been-looking-for)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

<!-- prettier-ignore-end -->
<!-- editorconfig-checker-enable -->

Sorry, whatever you were looking for, is not here.

## Guesses what you might have been looking for?

- [The index](/)?
- [Something about Matrix](/matrix/index.html)?
- [Onions](https://gitea.blesmrt.net/mikaela/ormirror) or [garlics](https://gitea.blesmrt.net/mikaela/i2pmirror)?
- [My blog](/blog/index.html)?
Sorry, whatever you were looking for, is not here. Maybe the navigation bar above or on the top right on smaller displays will help you?

0 comments on commit fec9e65

Please sign in to comment.