diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-04 07:17:03 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-04 07:17:03 +0300 |
commit | 49d66f7e673cc24a4f74f62c3513cdf4cc91fe8a (patch) | |
tree | 0906472f76f217fa5e6f6200025ffbcb00dd7bbb | |
parent | b35083c203ce55c2350510c8afd1cac8d763a6cb (diff) |
Improve tag page design
-rw-r--r-- | layouts/taxonomy/tag.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html index 42ab6a3..cec4ad8 100644 --- a/layouts/taxonomy/tag.html +++ b/layouts/taxonomy/tag.html @@ -2,11 +2,21 @@ <div id="reading-progress-bar" role="presentation" class="fixed z-10 top-0 left-0 h-1 bg-gray-700"></div> <article class="article"> - <h1><a href="{{.Permalink}}" class="no-underline">Posts with the tag {{ .Title }}</a></h1> + <h1><a href="{{.Permalink}}" class="no-underline">Posts with the tag: {{ .Title }}</a></h1> {{ range .Paginator.Pages }} <div class="border-b border-gray-400"> - <h2 class="text-3xl font-bold"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> + <h2 class="text-3xl font-bold mb-0"> + <a href="{{ .RelPermalink }}" class="no-underline">{{ .Title }}</a> + </h2> + + <small class="block text-right text-sm"> + {{ $readTime := cond (gt .ReadingTime 1) "minutes" "minute" }} + Read in {{ .ReadingTime }} {{ $readTime }} · + <time datetime="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}"> + {{ dateFormat "January 2, 2006" (default .Date (.PublishDate)) }} + </time> + </small> <p>{{ .Summary }}</p> </div> |