56 lines
1.7 KiB
HTML
56 lines
1.7 KiB
HTML
{{ define "main" -}}
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<article class="card mt-3 mb-3"
|
|
itemscope itemtype="http://schema.org/BlogPosting">
|
|
{{ if .Title -}}
|
|
<header class="post-header card-header">
|
|
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
|
|
{{ if and (not .Params.nodate) .Date -}}
|
|
<p class="post-meta">
|
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'
|
|
itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>
|
|
{{ with .Params.Author -}} •
|
|
<span itemprop="author" itemscope
|
|
itemtype="http://schema.org/Person">
|
|
<span itemprop="name">{{ . }}</span></span>
|
|
{{- end }}
|
|
</p>
|
|
{{- end }}
|
|
</header>
|
|
{{- end }}
|
|
<div class="post-content card-body" itemprop="articleBody">
|
|
{{ .Content }}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
{{ partial "sidebar.html" . }}
|
|
</div>
|
|
|
|
{{ if eq .Site.Params.showChildArticles "cards" -}}
|
|
<div class="row">
|
|
{{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}}
|
|
{{ range sort (sort $related "Date" "desc") "Weight" }}
|
|
{{ partial "card.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<ul class="pagination">
|
|
{{ with .NextInSection }}
|
|
<li class="page-item">
|
|
<a class="next page-link" href="{{ .Permalink }}">« {{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ with .PrevInSection }}
|
|
<li class="page-item">
|
|
<a class="previous page-link"
|
|
href="{{ .Permalink }}">{{ .Title }} »</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
{{- end }}
|