diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-01-26 11:36:44 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-01-26 11:36:44 +0100 |
| commit | d95fc5ca9e6a9c28894514b77e77b6b0eb58fbe9 (patch) | |
| tree | 7a4280e072382c09ac76b9da4e7b82f4170699db /themes/simple/layouts/_default | |
| parent | c67c1800f22e66b7f11c904ff8fdee6947f91c07 (diff) | |
| download | mitjafelicijan.com-d95fc5ca9e6a9c28894514b77e77b6b0eb58fbe9.tar.gz | |
A bunch of theme changes and removal of Cactus comments
Diffstat (limited to 'themes/simple/layouts/_default')
| -rwxr-xr-x | themes/simple/layouts/_default/list.html | 5 | ||||
| -rwxr-xr-x | themes/simple/layouts/_default/single.html | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html index 856abf4..8d72aed 100755 --- a/themes/simple/layouts/_default/list.html +++ b/themes/simple/layouts/_default/list.html | |||
| @@ -9,7 +9,8 @@ | |||
| 9 | {{ range (where .Site.RegularPages "Section" "posts") }} | 9 | {{ range (where .Site.RegularPages "Section" "posts") }} |
| 10 | <article class="mb-5" itemscope itemtype="http://schema.org/Article"> | 10 | <article class="mb-5" itemscope itemtype="http://schema.org/Article"> |
| 11 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> | 11 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| 12 | <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" aria-label="Opens URL"> | 12 | <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" |
| 13 | aria-label="Opens URL"> | ||
| 13 | {{ if .Params.draft }} | 14 | {{ if .Params.draft }} |
| 14 | <span class="bg-orange-600 text-white px-1.5">Draft</span> | 15 | <span class="bg-orange-600 text-white px-1.5">Draft</span> |
| 15 | {{ end }} | 16 | {{ end }} |
| @@ -30,4 +31,4 @@ | |||
| 30 | {{ partial "openring.html" . }} | 31 | {{ partial "openring.html" . }} |
| 31 | 32 | ||
| 32 | </main> | 33 | </main> |
| 33 | {{ end }} | 34 | {{ end }} \ No newline at end of file |
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index 81a7d58..ffa776f 100755 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -4,14 +4,21 @@ | |||
| 4 | <!-- Single article --> | 4 | <!-- Single article --> |
| 5 | <article itemtype="http://schema.org/Article" class="single mb-12"> | 5 | <article itemtype="http://schema.org/Article" class="single mb-12"> |
| 6 | <header class="mb-6"> | 6 | <header class="mb-6"> |
| 7 | <h1 itemtype="headline" class="text-4xl font-extrabold mb-6 leading-1 md:leading-2">{{ .Title }}</h1> | 7 | <h1 itemtype="headline" class="text-4xl font-bold mb-4 leading-1 md:leading-2">{{ .Title }}</h1> |
| 8 | 8 | ||
| 9 | {{ if in .Type "posts" }} | 9 | {{ if in .Type "posts" }} |
| 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> | 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| 11 | {{ end }} | 11 | {{ end }} |
| 12 | </header> | 12 | </header> |
| 13 | 13 | ||
| 14 | <div class="leading-relaxed"> | 14 | <div> |
| 15 | {{ if ge (len .TableOfContents) 100 }} | ||
| 16 | <p class="font-semibold">Table of contents</p> | ||
| 17 | <div>{{ .TableOfContents }}</div> | ||
| 18 | {{ end }} | ||
| 19 | </div> | ||
| 20 | |||
| 21 | <div class="leading-relaxed content"> | ||
| 15 | {{.Content}} | 22 | {{.Content}} |
| 16 | </div> | 23 | </div> |
| 17 | </article> | 24 | </article> |
| @@ -46,4 +53,4 @@ | |||
| 46 | {{ end }} | 53 | {{ end }} |
| 47 | 54 | ||
| 48 | </main> | 55 | </main> |
| 49 | {{ end }} | 56 | {{ end }} \ No newline at end of file |
