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

post-summary.html « partials « layouts - github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e17323851c6d38f4dcabb332f821267acd9d3fe6 (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
<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="mb-4 list-none w-full">
    {{ range where .Pages "Type" "ne" "page" -}}
    <li class="mb-8 flex flex-col no-underline rounded-md hover:bg-white transition duration-300 ease-in-out">
      <a href="{{ .RelPermalink }}" class="tracking-tight no-underline text-blue-600 m-2 mb-0">
        {{ .Title }}
      </a>

      <small class="m-2 text-sm">
        <time class="text-gray-500" datetime="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}">
          {{ dateFormat "Jan 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>
</div>