riq0h.jp/themes/qiss/layouts/index.html
2023-08-21 10:07:01 +09:00

34 lines
No EOL
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" . }}