Compare commits

..

2 Commits

Author SHA1 Message Date
Kevin C. Coram f44ae3d46d
Add a u-url link to the Permalink to the page 2019-12-07 14:07:47 -05:00
Kevin C. Coram 1a2aa49bbf
Make list content block optional
* Only generate a content block if there is content to show
* Change to use a <div> instead of <header> for the list conent
2019-12-07 14:07:29 -05:00
2 changed files with 5 additions and 3 deletions

View File

@ -6,9 +6,11 @@
<h1 class="p-name">{{ .Title }}</h1>
{{ end }}
{{ define "content" }}
<header class="list-content e-content">
{{ if .Content }}
<div class="list-content e-content">
{{ .Content }}
</header>
</div>
{{ end }}
{{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }}
{{ if ne $index 0 }}
{{ end }}

View File

@ -3,7 +3,7 @@
{{ .Title }} &ndash; {{ .Site.Title }}
{{ end }}
{{ define "content-header" }}
<h1 class="p-name">{{ .Title }}</h1>
<h1 class="p-name u-url"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<p>
Published by <a class="p-author h-card" href="{{ .Site.BaseURL }}">{{ .Site.Params.Card.Author }}</a> on
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time>