Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tag.html « taxonomy « layouts - github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cec4ad84229a4a272994fedea0c4c59a506cc35b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{ define "main" }}
  <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>

    {{ range .Paginator.Pages }}
      <div class="border-b border-gray-400">
        <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 }} &middot;
          <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>    
    {{ end }}
  </article>

  {{ if gt .Paginator.TotalPages 1 }}
    {{ partial "pagination.html" . }}
  {{ end }}
{{ end }}