49 lines
1.4 KiB
HTML
49 lines
1.4 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">
|
|
|
|
<header class="post-header card-header">
|
|
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
|
|
{{ if .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>
|
|
|
|
<div class="post-content card-body" itemprop="articleBody">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
{{ partial "sidebar.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|