diff options
Diffstat (limited to 'themes/simple/layouts')
| -rw-r--r-- | themes/simple/layouts/_default/notes.html | 29 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/navigation.html | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html new file mode 100644 index 0000000..b3a2f44 --- /dev/null +++ b/themes/simple/layouts/_default/notes.html | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | {{ define "main" }} | ||
| 2 | <main role="main" class="container-blog mx-auto px-6 md:p-0"> | ||
| 3 | |||
| 4 | <section class="mb-6"> | ||
| 5 | <h1 class="text-2xl font-bold">Notes, notes and notes</h1> | ||
| 6 | <p class="text-gray-600 italic">Notes about things I learn, things I do, things I want to remember, but never do.</p> | ||
| 7 | </section> | ||
| 8 | |||
| 9 | <hr class="border-2 border-gray-100 mb-12"> | ||
| 10 | |||
| 11 | <!-- List of all notes --> | ||
| 12 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12" role="feed"> | ||
| 13 | <meta itemprop="name" content="Article list"> | ||
| 14 | <section> | ||
| 15 | {{ range (where .Site.RegularPages "Section" "notes") }} | ||
| 16 | <div class="mb-10"> | ||
| 17 | <article class="mb-5 single" itemscope itemtype="http://schema.org/Article"> | ||
| 18 | <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2> | ||
| 19 | <div class="content"> | ||
| 20 | {{ .Content | safeHTML }} | ||
| 21 | </div> | ||
| 22 | </article> | ||
| 23 | </div> | ||
| 24 | {{ end }} | ||
| 25 | </section> | ||
| 26 | </nav> | ||
| 27 | |||
| 28 | </main> | ||
| 29 | {{ end }} | ||
diff --git a/themes/simple/layouts/partials/navigation.html b/themes/simple/layouts/partials/navigation.html index adabc9a..c4d76f0 100644 --- a/themes/simple/layouts/partials/navigation.html +++ b/themes/simple/layouts/partials/navigation.html | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar"> | 7 | <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="flex items-center gap-1" role="toolbar"> |
| 8 | <meta itemprop="name" content="Main Menu"> | 8 | <meta itemprop="name" content="Main Menu"> |
| 9 | 9 | ||
| 10 | <a href="/notes.html" class="font-medium px-2 hover:bg-yellow-100">Notes</a> | ||
| 10 | <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Telegram</a> | 11 | <a href="https://telegram.me/mitjafelicijan" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Telegram</a> |
| 11 | <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> | 12 | <a href="https://git.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Git</a> |
| 12 | <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Files</a> | 13 | <a href="https://files.mitjafelicijan.com" target="_blank" rel="noopener nofollow" itemprop="url" class="font-medium px-2 hover:bg-yellow-100">Files</a> |
| 13 | <a href="/pastebin.html" class="font-medium px-2 hover:bg-yellow-100">Pastebin</a> | ||
| 14 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> | 14 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-100">CV</a> |
| 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> | 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-100 hidden md:block">RSS</a> |
| 16 | </nav> | 16 | </nav> |
