-
Notifications
You must be signed in to change notification settings - Fork 0
/
nano.save
12 lines (12 loc) · 1.67 KB
/
nano.save
1
2
3
4
5
6
7
8
9
10
11
12
{{ define "main" }} <div role="main" class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> {{ with .Content }} <div class="well"> {{.}} </div> {{ end }} <div class="posts-list"> {{
$pag := .Paginate (where .Data.Pages "Type" "post") }} {{ range $pag.Pages }}
<article class="post-preview"> <a href="{{ .Permalink }}"> <h2 class="post-title">{{ .Title }}</h2> {{ if .Params.subtitle }} <h3 class="post-subtitle"> {{ .Params.subtitle }} </h3> {{ end }} {{ if .Params.image }}
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" /> {{ end }}
</a> {{ partial "post_meta.html" . }} <div class="post-entry"> {{ if .Truncated }} {{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }} <a href="{{ .Permalink }}" class="post-read-more">[{{
i18n "readMore" }}]</a>
{{ else }} {{ .Content }} {{ end }} </div> {{ if .Params.tags }} <div class="blog-tags"> {{ range .Params.tags }} <a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a> {{ end }}
</div>
{{ end }} </article> {{ end }} </div> {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} <ul class="pager main-pager"> {{ if .Paginator.HasPrev }} <li class="previous"> <a href="{{ .Permalink }}page/{{
.Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a>
</li> {{ end }} {{ if .Paginator.HasNext }} <li class="next"> <a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a> </li> {{ end }} </ul> {{ end }} </div> </div> </div>
{{ end }}