mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-16 21:28:31 -04:00
print content between title and list, if it exists
This commit is contained in:
parent
fcdc5565a7
commit
26c7b97e57
|
@ -1,4 +1,14 @@
|
|||
<header id="post-header"><h1>{{ .Title }}</h1></header>
|
||||
<!-- Use the declared title -->
|
||||
<header id="post-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
<!-- If there's content print it with some bottom margin -->
|
||||
{{ with .Content }}
|
||||
{{ . }} <hr style="height:0px; visibility:hidden;" />
|
||||
{{ end }}
|
||||
|
||||
<!-- Print the "post" (or the collection) -->
|
||||
<ul id="posts">
|
||||
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{ .Render "li" }}
|
||||
|
|
Loading…
Reference in a new issue