Skip to content

Commit

Permalink
n/index: improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed Jun 5, 2024
1 parent a056ea0 commit 817900b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions n/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,21 @@ <h1>Notes</h1>
</p>

<p>
<em
>I won't comment on whether there are secret messy unlisted notes lying
around.</em
<small
><em
>I won't comment on whether there are secret messy unlisted notes lying
around.</em
></small
>
</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 %}

{% assign notes = site.pages | where_exp: "page", "page.path contains 'n/'" %}
{% for note in notes %} {% if note.sitemap == true %}
<p>
<a href="{{ note.url }}">{{note.title}}</a>
<em>{{ note.excerpt | markdownify }}</em>

{% endif %} {% endfor %}
<a href="{{ note.url }}">{{ note.url | split: ".html" }} - {{note.title}}</a>
</p>
<p>{{ note.excerpt | strip_html }}</p>
{% endif %} {% endfor %}

0 comments on commit 817900b

Please sign in to comment.