mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-23 22:15:45 +00:00
32 lines
784 B
HTML
32 lines
784 B
HTML
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
<div class="container">
|
|
|
|
<h1>Posts</h1>
|
|
|
|
{{ $paginator := .Paginate .Data.Pages }}
|
|
{{ range $paginator.Pages }}
|
|
<div>
|
|
{{ if .Params.image }}
|
|
<a href="{{ .Permalink }}">
|
|
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner">
|
|
</a>
|
|
{{end}}
|
|
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
|
{{ partial "article_metadata" (dict "content" . "is_list" 1) }}
|
|
<div class="article-style"><p>
|
|
{{ if .Truncated }}
|
|
{{ printf "%s" .Summary | markdownify }}
|
|
{{ else }}
|
|
{{ .Content }}
|
|
{{ end }}
|
|
</p></div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "pagination" . }}
|
|
|
|
</div>
|
|
{{ partial "footer_container.html" . }}
|
|
{{ partial "footer.html" . }}
|