diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-12-20 20:33:57 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-12-20 20:33:57 +0100 |
| commit | 1ac073cc30a23b68371e819c77422b4906dd4f20 (patch) | |
| tree | 52469a6067a714dc93fb5a971ab620dd4a1c6c46 /themes/bare/layouts/partials/read-more.html | |
| parent | 6342c2d1cc08bf6edb7f0ffdbdb69ce5b8be62dd (diff) | |
| download | mitjafelicijan.com-1ac073cc30a23b68371e819c77422b4906dd4f20.tar.gz | |
Move to bare theme.
Diffstat (limited to 'themes/bare/layouts/partials/read-more.html')
| -rw-r--r-- | themes/bare/layouts/partials/read-more.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/themes/bare/layouts/partials/read-more.html b/themes/bare/layouts/partials/read-more.html new file mode 100644 index 0000000..d604bfc --- /dev/null +++ b/themes/bare/layouts/partials/read-more.html | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | <section> | ||
| 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"> | ||
| 4 | <meta itemprop="name" content="Article list"> | ||
| 5 | <ul> | ||
| 6 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} | ||
| 7 | {{ range $randomPosts }} | ||
| 8 | <li class="mb-6"> | ||
| 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> | ||
| 11 | <p class="text-gray-600 text-sm">{{ .Summary }}</p> | ||
| 12 | </li> | ||
| 13 | {{ end }} | ||
| 14 | </ul> | ||
| 15 | </nav> | ||
| 16 | </section> | ||
