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

li.html « _default « layouts - github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6af26519584e782d1ce194fb06363a5c72c8f03 (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
<article>
  <header>
    <h1 class="li-h1"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
    <div class="clearfix">
      <div class="post-date pull-left">
        <span class="li-small">
          {{ i18n "postedOn" }}
          {{ .Date.Format ( i18n "dateTimeFormat" ) }}
        </span>
      </div>
    </div>
  </header>

  {{ if (isset .Params "summary") }}
    <div class="li-content">
      <div class="summary-container">
        <p>{{ .Params.Summary | .Page.RenderString }}</p>
        <a class="btn btn-primary" href="{{ .Permalink }}">
          {{ i18n "readMore" }} <span aria-hidden="true">&rarr;</span>
        </a>
      </div>
      {{ if (isset .Params "images") }}
        <a href="{{ .Permalink }}">
          <img class="embedded-image" src="{{ index .Params.images 0 | absLangURL }}"/>
        </a>
      {{ end }}
    </div>
  {{ end }}
</article>