aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-15 18:10:02 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-15 18:10:02 +0200
commit7db628dc7b899b5e3f327f6f492d437d72bfdf42 (patch)
treef7535d607230090e31c606794a50202e4ab6f819
parenta909a44cc4477b30dec8c5889d9c4d4e153058a0 (diff)
downloadhugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.tar.gz
hugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.tar.bz2
hugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.zip
Section heading in home page
-rw-r--r--layouts/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index cf04902..f787152 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,9 +6,12 @@
<!-- Page Content -->
<div class="stripe-dark"></div>
- {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }}
+ {{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }}
<div class="stripe-dark">
- <div class="mw7 center">
+ <div class="mw7 center pv2">
+ <h2 class="athelas lh-title f2">
+ {{ .Title }}
+ </h2>
{{ range first 3 .Pages.ByPublishDate.Reverse }}
{{ partial "post.html" . }}
{{ end }}