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

summary.html « _default « layouts - github.com/geschke/hugo-tikva.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 034519e1d874aef3c4aec63f3d0d57c80cb2f21f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ $dateFormat := .Site.Params.DateFormat | default "Mon Jan 2, 2006"}}
{{ $author :=  .Params.author | default .Site.Params.author }}
{{ $showNumberOfWords := .Params.showNumberOfWords | default .Site.Params.showNumberOfWords  }}

<article class="mb-5 post">
  <header>

    <h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>

    <div class="post-meta">{{ if .Site.Params.ShowDate }}<span class="byline-icon fa fa-clock-o" aria-hidden="true"></span> <span class="screen-reader-text">{{ i18n "date" }}: </span><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format $dateFormat }}</time> - {{ end }}{{ if $author }}
    <span class="byline-icon fa fa-user" aria-hidden="true"></span><span class="screen-reader-text">{{ i18n "author" }}: </span> {{ $author }} - {{ end }}
    {{ if $showNumberOfWords }}{{ .FuzzyWordCount }} {{ i18n "words" }}{{ end }} </div>
  </header>
  {{ .Summary }}

  <footer>
  {{ if .Truncated }}
  <a href='{{ .Permalink }}'>  
  <span class="btn  btn-outline-primary">{{ i18n "readMore" . }} <span class="screen-reader-text">{{ i18n "readMoreOn" }} {{ .Title }}</span><span class="meta-nav"> »</span></span>
  </a>
  {{ end }}
  </footer>
</article>