diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:41:01 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:41:01 +0200 |
| commit | c152c6b5a9a45be3b6a7c72fb4142662edd669a2 (patch) | |
| tree | 701433c83c3764ff1f0ff7dfb10d8437bd371fa7 /themes | |
| parent | c7597a44c63db97f8a9615f20c56f8a7b103edcf (diff) | |
| download | mitjafelicijan.com-c152c6b5a9a45be3b6a7c72fb4142662edd669a2.tar.gz | |
Added tags
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/simple/layouts/_default/notes.html | 17 | ||||
| -rw-r--r-- | themes/simple/static/css/tailwind.css | 8 |
2 files changed, 22 insertions, 3 deletions
diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html index 1685542..268a1ce 100644 --- a/themes/simple/layouts/_default/notes.html +++ b/themes/simple/layouts/_default/notes.html | |||
| @@ -19,8 +19,23 @@ | |||
| 19 | <section> | 19 | <section> |
| 20 | {{ range (where .Site.RegularPages "Section" "notes") }} | 20 | {{ range (where .Site.RegularPages "Section" "notes") }} |
| 21 | <div class="mb-10"> | 21 | <div class="mb-10"> |
| 22 | <article class="mb-5 single" itemscope itemtype="http://schema.org/Article"> | 22 | <article class="mb-5 single note" itemscope itemtype="http://schema.org/Article"> |
| 23 | <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2> | 23 | <h2 class="text-xl font-medium notes-heading">{{.Title}}</h2> |
| 24 | <p class="text-gray-600 _italic text-sm"> | ||
| 25 | <time datetime="{{ .Date.Format "2006-01-02" }}" itemprop="datePublished"> | ||
| 26 | {{ .Date.Format "Monday Jan 2, 2006" }} | ||
| 27 | </time> | ||
| 28 | |||
| 29 | {{ if .Params.tags }} | ||
| 30 | <span>with tags</span> | ||
| 31 | <span class="inline-flex flex-row gap-1"> | ||
| 32 | <span>(</span> | ||
| 33 | {{ range .Params.tags }} | ||
| 34 | <span>{{ . }}</span> | ||
| 35 | {{ end }} | ||
| 36 | <span>)</span> | ||
| 37 | </span> | ||
| 38 | {{ end }} | ||
| 24 | <div class="content"> | 39 | <div class="content"> |
| 25 | {{ .Content | safeHTML }} | 40 | {{ .Content | safeHTML }} |
| 26 | </div> | 41 | </div> |
diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css index 0753513..2b4b779 100644 --- a/themes/simple/static/css/tailwind.css +++ b/themes/simple/static/css/tailwind.css | |||
| @@ -27,8 +27,8 @@ article.single h2 { | |||
| 27 | @apply text-2xl font-bold mb-8 mt-8 leading-tight; | 27 | @apply text-2xl font-bold mb-8 mt-8 leading-tight; |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | article.single h2.notes-heading { | 30 | article.single.note h2 { |
| 31 | @apply text-2xl font-bold mb-4 mt-8 leading-tight; | 31 | @apply text-2xl font-bold mb-1 mt-8 leading-tight; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | article.single h3 { | 34 | article.single h3 { |
| @@ -83,6 +83,10 @@ article.single code { | |||
| 83 | @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; | 83 | @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | article.single.note code { | ||
| 87 | @apply bg-gray-100 rounded px-2 py-1 text-xs font-medium; | ||
| 88 | } | ||
| 89 | |||
| 86 | article.single pre { | 90 | article.single pre { |
| 87 | @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto; | 91 | @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto; |
| 88 | } | 92 | } |
