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

boxes-section-summaries.html « partials « layouts « gohugoioTheme « themes « docs - github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1683d3c9c245512cee5209e6d7f71c4994d9bb9 (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
<div class="relative {{ .classes }} weight-{{ .context.Weight }}">

  <div class="bg-white mb2 pa3 pa4-l gray">
    {{ if eq .context.Section "news" }}
      <date class="f6 db" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
        {{ .context.Date.Format "January 2, 2006" }}
      </date>
    {{ end }}

    <h1 class="near-black f3">
      <a href="{{ .context.URL }}" class="link primary-color dim">
      {{- if eq .context.Section "functions" -}}
        {{ .context.LinkTitle }}
      {{- else -}}
        {{ .context.Title }}
      {{- end -}}
      </a>
    </h1>

    <div class="lh-copy links">
      {{ if .context.Params.description  }}
          {{ .context.Params.description | markdownify }}
        {{ else }}
          {{ .context.Summary  }}
      {{ end }}

        <a href="{{ .context.RelPermalink }}" class="f6 mt2 db link primary-color dim">
          Read More &raquo;
        </a>

    </div>


  </div>
</div>