blob: b376cb1965ce861efb3b296b6318fdd06d261af5 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{{ partial "head.html" . }}
<body id="post-index" {{ if isset ($.Scratch.Get "Params") "image" }}class="feature"{{ end }}>
{{ partial "navigation.html" . }}
<div class="entry-header">
{{ if isset ($.Scratch.Get "Params") "image" }}
{{ $imageparams := index ($.Scratch.Get "Params") "image" }}
{{ if $imageparams.credit }}<div class="image-credit">Image source: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }}
<div class="entry-image">
<img src="{{ .Site.BaseURL }}{{ $imageparams.feature }}" alt="{{ .Title }}">
</div><!-- /.entry-image -->
{{ end }}
<div class="header-title">
<div class="header-title-wrap">
<h1><a href="/" title="Go to the homepage">{{ .Site.Title }}</a></h1>
<h2>{{ if .IsHome }}
{{ .Site.Params.subtitle }}
{{ else if .IsNode }}
{{ $pagename := (index .Site.Data.sections (lower .Title)) }}
{{ if $pagename }}
{{ index $pagename "title" }}
{{ else }}
{{ .Title }}
{{ end }}
{{ else if .IsPage }}
{{ .Title }}
{{ end }}</h2>
</div><!-- /.header-title-wrap -->
</div><!-- /.header-title -->
</div><!-- /.entry-header -->
<div id="main" role="main">
{{ range .Paginator.Pages }}
<article class="hentry">
<header>
{{ if .Params.image.feature }}
<div class="entry-image-index">
<a href="{{ .Permalink }}" title="{{ .Title }}"><img src="{{ .Site.BaseURL }}{{ .Params.image.feature }}" alt="{{ .Title }}"></a>
</div><!-- /.entry-image -->
{{ end }}
<div class="entry-meta">
<span class="entry-date date published updated"><time datetime="{{ .Date }}"><a href="{{ .Permalink }}">{{ .Date.Format "Jan 2, 2006" }}</a></time></span>
<span class="entry-reading-time">
<i class="fa fa-clock-o"></i>
Reading time ~{{ if le .ReadingTime 1 }}1 minute{{ else }}{{ .ReadingTime }} minutes{{ end }}
</span><!-- /.entry-reading-time -->
</div><!-- /.entry-meta -->
{{ if .Params.link }}
<h1 class="entry-title"><a href="{{ .Permalink }}" class="permalink" rel="bookmark" title="{{ .Title }}"><i class="fa fa-bookmark"></i></a> <a href="{{ .Params.link }}">{{ .Title }}</a></h1>
{{ else }}
<h1 class="entry-title"><a href="{{ .Permalink }}" rel="bookmark" title="{{ .Title }}" itemprop="url">{{ .Title }}</a></h1>
{{ end }}
</header>
<div class="entry-content">
{{ .Content }}
</div><!-- /.entry-content -->
</article><!-- /.hentry -->
{{ end }}
{{ partial "pagination.html" . }}
</div><!-- /#main -->
{{ partial "foot.html" . }}
|