34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
|
{{ partial "header" . }}
|
||
|
{{ partial "nav" . }}
|
||
|
<section class="section">
|
||
|
<div class="container">
|
||
|
{{- $pages := . -}}
|
||
|
{{- if .IsHome -}}
|
||
|
{{- $pages = .Site.RegularPages -}}
|
||
|
{{- else -}}
|
||
|
{{ $pages = .Pages -}}
|
||
|
{{- end -}}
|
||
|
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
|
||
|
{{ range sort .Paginator.Pages }}
|
||
|
<article>
|
||
|
<div class="subtitle tags is-6 is-pulled-right">
|
||
|
{{ if .Params.tags }}
|
||
|
{{ partial "tags" .Params.tags }}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
<h2 class="subtitle is-6 date">{{ .Date.Format "2006/01/02" }}</h2>
|
||
|
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}{{ partial "taxonomies_count" . }}</a>{{ if .Draft }} ::Draft{{ end }}</h1>
|
||
|
<div class="content">
|
||
|
{{ .Summary | plainify | safeHTML }}
|
||
|
{{ if .Truncated }}
|
||
|
<a class="button is-link" href="{{ .Permalink }}" style="height:28px">
|
||
|
Read more
|
||
|
</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</article>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</section>
|
||
|
{{ partial "pager" . }}
|
||
|
{{ partial "footer" . }}
|