mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 20:50:40 +00:00
Robert Kaussow
d5f6cfb13e
BREAKING CHANGE: We have replaced `gulp` with `webpack` and `npm scripts` to build this theme. If you build it on your own or use build commands during the deployment, you may have to adjust your setup. BREAKING CHANGE: The `GeekblogIcons` font is using the icon name as Unicode now. As a consequence, you have to replace all references to Icons from this font if you have customized the theme.
30 lines
1.0 KiB
HTML
30 lines
1.0 KiB
HTML
{{ define "main" }}
|
|
{{ $pages := where .RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
{{ if (eq .Kind "home") }}
|
|
{{ $pages = where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
{{ end }}
|
|
|
|
{{ $paginator := .Paginate $pages }}
|
|
{{ range $paginator.Pages }}
|
|
<article class="gblog-post">
|
|
<header class="gblog-post__header">
|
|
<h1><a href="{{ .RelPermalink }}">{{ partial "title" . }}</a></h1>
|
|
</header>
|
|
|
|
<section class="gblog-markdown">
|
|
{{ .Summary }}
|
|
</section>
|
|
<div class="gblog-post__readmore">
|
|
{{ if .Truncated }}
|
|
<a class="flex-inline align-center fake-link" title="Read full post" href="{{ .RelPermalink }}">Read full post<i class="gblog-icon">gblog_arrow_right</i></a>
|
|
{{ end }}
|
|
</div>
|
|
|
|
<footer class="gblog-post__footer">
|
|
{{ partial "metadata.html" . }}
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|
|
{{ partial "pagination.html" . }}
|
|
{{ end }}
|