mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 20:14:41 +00:00
41 lines
947 B
HTML
41 lines
947 B
HTML
{{ if .Params.widgets }}
|
|
|
|
{{ partial "widget_page.html" . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
|
|
{{ partial "header_image.html" . }}
|
|
|
|
<div class="universal-wrapper">
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
|
|
{{ with .Content }}
|
|
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
|
{{ end }}
|
|
|
|
{{ $paginator := .Paginate .Data.Pages }}
|
|
{{ range $paginator.Pages }}
|
|
<div>
|
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
|
<div class="article-style">
|
|
{{ if .Params.summary }}
|
|
{{ .Params.summary | plainify | emojify }}
|
|
{{ else if .Params.abstract }}
|
|
{{ .Params.abstract | plainify | emojify | truncate 250 }}
|
|
{{ else if .Summary }}
|
|
{{ .Summary | plainify | emojify }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "pagination" . }}
|
|
</div>
|
|
{{ partial "footer_container.html" . }}
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ end }}
|