aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/_default/notes.html
blob: 168554214c18dfbc8d45a26e430493f6ec35b14c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{ define "main" }}
<main role="main" class="container-blog mx-auto px-6 md:p-0">

  <section class="mb-6">
    <h1 class="text-2xl font-bold mb-2">Notes, notes and notes</h1>
    <p class="text-gray-600 italic">
      Notes about things I learn, things I do, things I want to remember,
      but never do. You can subscribe to this
      <a href="/notes.xml" class="underline">RSS feed</a>
      which contains only the notes without the blog posts.
    </p>
  </section>

  <hr class="border-2 border-gray-100 mb-12">

  <!-- List of all notes -->
  <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12" role="feed">
    <meta itemprop="name" content="Article list">
    <section>
      {{ range (where .Site.RegularPages "Section" "notes") }}
      <div class="mb-10">
        <article class="mb-5 single" itemscope itemtype="http://schema.org/Article">
          <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2>
          <div class="content">
            {{ .Content | safeHTML }}
          </div>
        </article>
      </div>
      {{ end }}
    </section>
  </nav>

</main>
{{ end }}