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

summary-masonry.html « components « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8984b04bb5679e5c3789a6975de513df9fff260c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div
  class="bg-secondary-bg overflow-hidden rounded border transition duration-200 ease-in-out hover:shadow-lg"
>
  {{ $featured := partial "utils/get-featured" . }}
  {{ with $featured }}
    {{ . }}
  {{ end }}
  <div class="px-6 pt-6">
    <div class="text-primary-text mb-2 text-xl font-bold">
      <a href="{{ .Permalink }}" class="hover:text-eureka">{{ .LinkTitle }}</a>
    </div>
    <div class="prose max-w-none">
      {{ if .Description }}
        {{ .Description | plainify | htmlUnescape }}
      {{ else if .Summary }}
        {{ .Summary | plainify | htmlUnescape }}
      {{ end }}
    </div>
  </div>
  <div class="px-6 pb-2">
    {{ partial "components/post-metadata" . }}
  </div>
</div>