44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
|
<section id="main">
|
||
|
|
||
|
{{ $pages := .Pages }}
|
||
|
{{ if .IsHome }}
|
||
|
{{ $pages = .Site.RegularPages }}
|
||
|
{{ end }}
|
||
|
{{ $paginator := .Paginate $pages }}
|
||
|
<!--
|
||
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
|
||
|
-->
|
||
|
{{ range $paginator.Pages }}
|
||
|
<article class="article article-type-post" itemscope="" itemprop="blogPost">
|
||
|
|
||
|
<div class="article-inner">
|
||
|
|
||
|
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
|
||
|
<a href="{{ .Permalink }}" itemprop="url">
|
||
|
<img src="{{ .Site.BaseURL }}{{ .Params.banner }}" class="article-banner"> {{ end }}
|
||
|
</a>
|
||
|
|
||
|
{{ partial "article_header" . }}
|
||
|
<div class="article-entry" itemprop="articleBody">
|
||
|
<p>
|
||
|
{{ .Summary }} ...
|
||
|
</p>
|
||
|
<p class="article-more-link">
|
||
|
<a href="{{ .Permalink }}">
|
||
|
Read more
|
||
|
<!--
|
||
|
{{with .Site.Data.l10n.articles.read_more}}{{.}}{{end}}
|
||
|
-->
|
||
|
</a>
|
||
|
</p>
|
||
|
</div>
|
||
|
<!--
|
||
|
{{ partial "article_footer" . }}
|
||
|
-->
|
||
|
</div>
|
||
|
</article>
|
||
|
{{ end }}
|
||
|
{{ partial "pagination" . }}
|
||
|
</section>
|
||
|
<!-- // main section -->
|