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

get-summary.html « utils « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49682bffca34f024a1289e97d594641d44d66b01 (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
30
31
32
33
34
35
36
37
<div class="mb-4">
  <a href="{{ .Permalink }}" class="font-bold text-xl hover:text-eureka">{{ .LinkTitle }}</a>
</div>
<div class="content">
  {{ if .Description }}
    {{ .Description | plainify | htmlUnescape }}
  {{ else if .Summary }}
    {{ .Summary | plainify | htmlUnescape }}
  {{ end }}
</div>
{{ if eq .Type "docs" }}
<div class="px-6 pt-4">
  {{ range $index, $value := first 3 .Pages }}
  {{ if gt $index 0 }}
  <div class="-mx-4 my-4 border-t"></div>
  {{ end -}}
  <div class="">
      <div class="mb-2">
          <a href="{{ .Permalink }}" class="font-semibold hover:text-eureka">{{ .LinkTitle }}</a>
      </div>
      <div class="">
        {{ if .Description }}
          {{ .Description | plainify | htmlUnescape }}
        {{ else if .Summary }}
          {{ .Summary | plainify | htmlUnescape }}
        {{ end }}
      </div>
  </div>
  {{ end }}
  <div class="pt-6 hover:text-eureka">
      <a href="{{ .Permalink }}" class="font-semibold">{{ i18n "readMore" }}</a>
      <i class='fas {{ cond (eq .Site.Language.LanguageDirection "rtl") "fa-caret-left" "fa-caret-right" }} ms-1'></i>
  </div>
</div>
{{ else }}
{{ partial "components/post-metadata" . }}
{{ end }}