Break out the page description from the 'index.html' layout into its own partial - this adds the ability for a site to customize the description on the main page without altering the theme. (#71)

This commit is contained in:
James Montgomerie
2022-11-27 03:59:33 -08:00
committed by GitHub
parent f753261345
commit 5d283cd3a9
2 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,7 @@
<div class="description">
{{ if isset .Params "description" }}
{{ .Description }}
{{ else }}
{{ .Summary }}&hellip;
{{ end }}
</div>