mirror of
https://github.com/fruworg/themu.git
synced 2025-06-13 02:00:26 +03:00
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:
committed by
GitHub
parent
f753261345
commit
5d283cd3a9
7
layouts/partials/pagedescription.html
Normal file
7
layouts/partials/pagedescription.html
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="description">
|
||||
{{ if isset .Params "description" }}
|
||||
{{ .Description }}
|
||||
{{ else }}
|
||||
{{ .Summary }}…
|
||||
{{ end }}
|
||||
</div>
|
Reference in New Issue
Block a user