diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
| commit | b3dfbe8b70b870399dc335b8dcf028bb9a3955de (patch) | |
| tree | cd9b9aaa0445d4641356227866827f2d828a1517 /themes | |
| parent | 660cebf99b4317856401acda8238bff75f82c4cc (diff) | |
| download | mitjafelicijan.com-b3dfbe8b70b870399dc335b8dcf028bb9a3955de.tar.gz | |
Added notes as a separate type of content and moved the content
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/simple/layouts/_default/notes.html | 29 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/navigation.html | 2 | ||||
| -rw-r--r-- | themes/simple/static/css/tailwind.css | 16 |
3 files changed, 37 insertions, 10 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> |
diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css index fa64f9c..0753513 100644 --- a/themes/simple/static/css/tailwind.css +++ b/themes/simple/static/css/tailwind.css | |||
| @@ -24,15 +24,19 @@ a:hover { | |||
| 24 | 24 | ||
| 25 | /* Headings */ | 25 | /* Headings */ |
| 26 | article.single h2 { | 26 | article.single h2 { |
| 27 | @apply text-2xl font-bold mb-8 mt-8; | 27 | @apply text-2xl font-bold mb-8 mt-8 leading-tight; |
| 28 | } | ||
| 29 | |||
| 30 | article.single h2.notes-heading { | ||
| 31 | @apply text-2xl font-bold mb-4 mt-8 leading-tight; | ||
| 28 | } | 32 | } |
| 29 | 33 | ||
| 30 | article.single h3 { | 34 | article.single h3 { |
| 31 | @apply text-xl font-bold mb-4 mt-8; | 35 | @apply text-xl font-bold mb-4 mt-8 leading-tight; |
| 32 | } | 36 | } |
| 33 | 37 | ||
| 34 | article.single h4 { | 38 | article.single h4 { |
| 35 | @apply text-lg font-bold mb-4 mt-8; | 39 | @apply text-lg font-bold mb-4 mt-8 leading-tight; |
| 36 | } | 40 | } |
| 37 | 41 | ||
| 38 | /* Paragraph */ | 42 | /* Paragraph */ |
| @@ -66,12 +70,6 @@ article.single img { | |||
| 66 | image-rendering: -webkit-optimize-contrast; | 70 | image-rendering: -webkit-optimize-contrast; |
| 67 | } | 71 | } |
| 68 | 72 | ||
| 69 | article.single img[src*="?style=bigimg"] {} | ||
| 70 | |||
| 71 | @media (max-width: 900px) { | ||
| 72 | article.single img[src*="?style=bigimg"] {} | ||
| 73 | } | ||
| 74 | |||
| 75 | article.single video { | 73 | article.single video { |
| 76 | @apply rounded w-full !bg-gray-50; | 74 | @apply rounded w-full !bg-gray-50; |
| 77 | } | 75 | } |
