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

header.html « itemized « layouts - github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52f5fc14ff7ed76f6eb1ad9fe42ca4c04de34d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<header>
  <div class="title">
    {{ if $.Scratch.Get "h1" }}
      <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
      {{ $.Scratch.Set "h1" false }}
    {{ else }}
      <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
    {{ end }}
    {{ with .Description }}
      <p>{{ . }}</p>
    {{ end }}
  </div>
  <div class="meta">

    <span class="author">{{ .Params.author }}</span>
    <span class="format">{{ .Params.format }}</span>
    {{ if isset .Params "link" }}
      <a href="{{ .Params.link }}">Link</a>
    {{ end }}
      <!--<a href="#" class="author"><span class="name">Jane Doe</span><img src="images/avatar.jpg" alt="" /></a>-->
  </div>
</header>