diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-15 18:10:02 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-15 18:10:02 +0200 |
commit | 7db628dc7b899b5e3f327f6f492d437d72bfdf42 (patch) | |
tree | f7535d607230090e31c606794a50202e4ab6f819 /layouts/index.html | |
parent | a909a44cc4477b30dec8c5889d9c4d4e153058a0 (diff) | |
download | hugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.tar.gz hugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.tar.bz2 hugo-minimalist-theme-7db628dc7b899b5e3f327f6f492d437d72bfdf42.zip |
Section heading in home page
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 7 |
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 }} |