blob: c5af07f7e329c1fc91708f0e6454df61c818c075 (
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
|
{{ define "main" }}
<!--- icon container --->
<div class="panel panel-default">
<div class="panel-body">
<div>
<span class="text-primary">{{ .Site.Params.description}}</span>
<div class="pull-right">
<a target="_blank" href="https://twitter.com/{{ .Site.Params.twitter }}"><img src="/images/twitter_icon.png" width="25px" height="25px">Email</a>
<a target="_blank" href="mailto:{{ .Site.Params.email }}"><img src="/images/email_icon.jpg" width="25px" height="25px">Email</a>
<a target="_blank" href="https://github.com/{{ .Site.Params.github }}"><img src="/images/github-logo-icon-2.png" width="25px" height="25px">GitHub</a>
<a target="_blank" class="rss" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"><img src="/images/rss-feed-logo-symbol-icon-10.png" width="25px" height="25px">RSS</a>
</div>
</div>
{{ range $key, $value := .Site.Taxonomies }}
{{ if eq $key "categories" }}
<p class="categories">
{{ range first 10 $value.ByCount }}<a class="btn btn-default btn-xs text-capitalize" href="/{{ $key }}/{{ .Name | urlize }}">{{ .Name }}</a> {{ end }}
</p>
{{ end }}
{{ end }}
</div>
</div>
<!-- post list --->
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-list-alt"></span> <b>Posts</b>
</div>
<div class="panel-body" itemtype="http://schema.org/ItemList" itemListElement>
<div class="list-group">
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "post") }}
{{ range $paginator.Pages }}
<a itemListElement itemtype="http://schema.org/ListItem" itemscope href="{{.Permalink}}" class="list-group-item"><span class="badge" content="{{.Date.Format "Jan 02, 2006"}}" >{{.Date.Format "Jan 02, 2006"}}</span><span itemprop="name">{{.Title}}</span>
<meta itemprop="url" content="{{.Permalink}}"/>
</a>
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
</div>
</div>
<!--- end post --->
{{ end }}
|