blob: 61ed7854a183a35f9a9b3b67518c77c57f8dd00b (
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
38
39
40
41
42
|
{{ if .IsHome }}
{{ if .Site.Params.homeTitle }}
{{ $.Scratch.Set "title" .Site.Params.homeTitle }}
{{ else }}
{{ $.Scratch.Set "title" .Site.Title }}
{{ end }}
{{ else }}
{{ $.Scratch.Set "title" .Title }}
{{ end }}
{{ $title := $.Scratch.Get "title" }}
{{ if $title }}
<header>
{{ partial "nav.html" . }}
<div class="intro-header">
<div class="container">
<div class="{{ .Type }}-heading">
{{ if eq .Type "list" }}
<h1>{{ if .Data.Singular }}#{{ end }}{{ .Title }}</h1>
{{ else }}
<h1>{{ with $title }}{{.}}{{ else }}<br/>{{ end }}</h1>
{{ if .IsHome }}
<p class="author">{{ with .Site.Author.name }}{{.}}{{ else }}<br/>{{ end }}</p>
{{ if .Site.Author.abstract }}
<div class="abstract">
<h5>Abstract</h5>
<p>
{{ .Site.Author.abstract }}
</p>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</div>
</header>
{{ else }}
<div class="intro-header"></div>
{{ end }}
|