diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-03 01:38:05 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-03 01:38:05 +0200 |
| commit | b097ad035a089076b6cf1f1e9c7f648439d9b073 (patch) | |
| tree | 1d06a44f4d6ec551c67ed72a4b7136ae59602e8a /themes/simple/layouts/partials/read-more.html | |
| parent | 71b7c639fa0b4ffe7425ec9bd6c3b0fef08b0028 (diff) | |
| download | mitjafelicijan.com-b097ad035a089076b6cf1f1e9c7f648439d9b073.tar.gz | |
Bunch of CSS improvements
Diffstat (limited to 'themes/simple/layouts/partials/read-more.html')
| -rw-r--r-- | themes/simple/layouts/partials/read-more.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/simple/layouts/partials/read-more.html b/themes/simple/layouts/partials/read-more.html index a238017..9de1554 100644 --- a/themes/simple/layouts/partials/read-more.html +++ b/themes/simple/layouts/partials/read-more.html | |||
| @@ -2,15 +2,15 @@ | |||
| 2 | <h2 class="text-2xl font-bold mb-6">Read more from this site</h2> | 2 | <h2 class="text-2xl font-bold mb-6">Read more from this site</h2> |
| 3 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> | 3 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> |
| 4 | <meta itemprop="name" content="Article list"> | 4 | <meta itemprop="name" content="Article list"> |
| 5 | <ul> | 5 | <nav class="flex flex-col gap-4"> |
| 6 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} | 6 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} |
| 7 | {{ range $randomPosts }} | 7 | {{ range $randomPosts }} |
| 8 | <li class="mb-6"> | 8 | <div> |
| 9 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> | 9 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> |
| 10 | <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100 font-medium">{{ .Title }}</a> | 10 | <a href="/{{ .Params.url }}" itemprop="url" class="block underline font-medium mb-1">{{ .Title }}</a> |
| 11 | <p class="text-gray-600 text-sm">{{ .Summary }}</p> | 11 | <p class="text-gray-600 text-sm">{{ .Summary }}</p> |
| 12 | </li> | 12 | </div> |
| 13 | {{ end }} | 13 | {{ end }} |
| 14 | </ul> | 14 | </nav> |
| 15 | </nav> | 15 | </nav> |
| 16 | </section> \ No newline at end of file | 16 | </section> |
