summaryrefslogtreecommitdiffstats
path: root/themes/rusticus/layouts/partials/home/front-page-summary.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/rusticus/layouts/partials/home/front-page-summary.html')
-rw-r--r--themes/rusticus/layouts/partials/home/front-page-summary.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/rusticus/layouts/partials/home/front-page-summary.html b/themes/rusticus/layouts/partials/home/front-page-summary.html
new file mode 100644
index 0000000..773503e
--- /dev/null
+++ b/themes/rusticus/layouts/partials/home/front-page-summary.html
@@ -0,0 +1,18 @@
+
+
+<ul class="front-page-summary">
+ {{ $page := .context.Site.GetPage "section" .section }}
+ {{ $pages := $page.Pages.ByExpiryDate }}
+ {{ if eq .section "blog" }}
+ {{ $pages = $page.Pages.ByDate.Reverse }}
+ {{ end }}
+ {{ range first 3 $pages }}
+ <li hugo-nav="{{ .RelPermalink}}">
+ <a href="{{ .Permalink}}">
+ <h3>{{ .LinkTitle }}</h3>
+ <p>{{ .Summary }}</p>
+ </a>
+ </li>
+ {{ end }}
+</ul>
+