2022-05-14 13:50:42 +08:00
|
|
|
{{- define "main" }}
|
|
|
|
{{- $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
|
|
|
|
{{- range $paginator.Pages }}
|
|
|
|
<div class="post-block animated fadeIn">
|
|
|
|
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="{{ .Scratch.Get "langCode" }}">
|
|
|
|
<link itemprop="mainEntityOfPage" href="{{ .Permalink }}">
|
2022-05-10 17:11:04 +08:00
|
|
|
<header class="post-header">
|
|
|
|
<h2 class="post-title" itemprop="name headline">
|
2022-05-14 13:50:42 +08:00
|
|
|
<a href="{{ .Permalink }}" class="post-title-link" itemprop="url">{{ .Title }}</a>
|
2022-05-10 17:11:04 +08:00
|
|
|
</h2>
|
|
|
|
<div class="post-meta-container">
|
|
|
|
<div class="post-meta">
|
2022-05-16 08:59:50 +08:00
|
|
|
{{- partial "post_meta/date" . }}
|
|
|
|
{{- partial "post_meta/catgs" . }}
|
|
|
|
{{- partial "post_meta/tags" . }}
|
2022-05-10 17:11:04 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-16 08:59:50 +08:00
|
|
|
</header>
|
|
|
|
<div class="post-body" itemprop="articleBody">{{ .Summary }}</div>
|
|
|
|
<footer class="post-footer">
|
|
|
|
<div class="post-footer-btn">
|
2022-05-14 13:50:42 +08:00
|
|
|
<a class="hvr-shutter-out-horizontal" href="{{ .Permalink }}" rel="contents">
|
|
|
|
{{- T "PostReadMore" }} »
|
|
|
|
</a>
|
2022-05-10 17:11:04 +08:00
|
|
|
</div>
|
2022-05-16 08:59:50 +08:00
|
|
|
<div class="post-eof"></div>
|
|
|
|
</footer>
|
2022-05-04 16:17:20 +08:00
|
|
|
</article>
|
2022-05-14 13:50:42 +08:00
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|