diff options
Diffstat (limited to 'themes/simple/layouts/_default')
| -rwxr-xr-x | themes/simple/layouts/_default/list.html | 7 | ||||
| -rwxr-xr-x | themes/simple/layouts/_default/single.html | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html index 04589cb..2e66b0d 100755 --- a/themes/simple/layouts/_default/list.html +++ b/themes/simple/layouts/_default/list.html | |||
| @@ -10,7 +10,12 @@ | |||
| 10 | {{ range (where .Site.RegularPages "Section" "posts") }} | 10 | {{ range (where .Site.RegularPages "Section" "posts") }} |
| 11 | <li class="mb-5"> | 11 | <li class="mb-5"> |
| 12 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> | 12 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| 13 | <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-100">{{.Title}}</a> | 13 | <a href="/{{.Params.url}}" itemprop="url" class="hover:bg-yellow-100"> |
| 14 | {{ if .Params.draft }} | ||
| 15 | <span class="bg-orange-600 text-white px-1.5">Draft</span> | ||
| 16 | {{ end }} | ||
| 17 | {{.Title}} | ||
| 18 | </a> | ||
| 14 | </li> | 19 | </li> |
| 15 | {{end}} | 20 | {{end}} |
| 16 | </ul> | 21 | </ul> |
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index e8f27d1..c8e786a 100755 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | <!-- Read more --> | 34 | <!-- Read more --> |
| 35 | {{ if in .Type "posts" }} | 35 | {{ if in .Type "posts" }} |
| 36 | <section> | 36 | <section> |
| 37 | <h1 class="text-2xl font-bold mb-6">Read more from this site</h1> | 37 | <h2 class="text-2xl font-bold mb-6">Read more from this site</h2> |
| 38 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> | 38 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> |
| 39 | <meta itemprop="name" content="Article list"> | 39 | <meta itemprop="name" content="Article list"> |
| 40 | <ul> | 40 | <ul> |
| @@ -42,7 +42,7 @@ | |||
| 42 | {{ range $randomPosts }} | 42 | {{ range $randomPosts }} |
| 43 | <li class="mb-6"> | 43 | <li class="mb-6"> |
| 44 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> | 44 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> |
| 45 | <a href="{{.Permalink}}" itemprop="url" class="hover:bg-yellow-100 font-medium">{{.Title}}</a> | 45 | <a href="/{{.Params.url}}" itemprop="url" class="hover:bg-yellow-100 font-medium">{{.Title}}</a> |
| 46 | <p class="text-gray-600 text-sm">{{.Summary}}</p> | 46 | <p class="text-gray-600 text-sm">{{.Summary}}</p> |
| 47 | </li> | 47 | </li> |
| 48 | {{end}} | 48 | {{end}} |
