diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-03 08:17:08 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-03 08:17:08 +0300 |
commit | 63e6624cb984a8c74d55948091b846f0632b4a1d (patch) | |
tree | 32feb912d3f10fdfa38f3b4ab148d08d21086d9d /layouts/partials/post-summary.html | |
parent | 3bc1080f9dad8d291abb4bb1285bfdc918d4829e (diff) |
Refactor styles
Diffstat (limited to 'layouts/partials/post-summary.html')
-rw-r--r-- | layouts/partials/post-summary.html | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/layouts/partials/post-summary.html b/layouts/partials/post-summary.html index 8fe9d04..3d96551 100644 --- a/layouts/partials/post-summary.html +++ b/layouts/partials/post-summary.html @@ -1,10 +1,24 @@ <div class="flex flex-col md:flex-row border-b border-gray-400"> <h2 class="text-3xl font-bold mb-2 md:w-32 flex-shrink-0 flex-grow-0">{{ .Key }}</h2> - <ol class="md:pt-3 mb-4"> + <ol class="md:pt-3 mb-4 list-none"> {{ range where .Pages "Type" "ne" "page" -}} - <li> - <a href="{{ .RelPermalink }}" class="tracking-tight">{{ .Title }}</a> + <li class="mb-8 flex flex-wrap"> + <a href="{{ .RelPermalink }}" class="tracking-tight no-underline flex-grow w-full text-blue-600"> + {{ .Title }} + </a> + + <small class="mt-2 text-sm"> + <time class="text-gray-500" datetime="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}"> + {{ dateFormat "January 2" (default .Date (.PublishDate)) }} + </time> + + {{ range (.GetTerms "tags") }} + <a href="{{ .Permalink }}" class="inline-flex items-center px-4 py-1 rounded-full no-underline bg-orange-100 text-orange-800 hover:bg-orange-300 ml-4"> + {{ .LinkTitle }} + </a> + {{ end }} + </small> </li> {{- end }} </ol> |