clean up post_meta page

This commit is contained in:
Greg Gauthier 2021-12-03 13:09:48 +00:00
parent 619a504ecf
commit 9fba0cdde5
1 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,10 @@
<div class="post-meta">
{{ $baseUrl := .Site.BaseURL }}
{{ if isset .Params "topics" }}
{{ $count := len .Params.topics }}
{{ if gt $count 0 }}
<span>
<div style="float:left; font-size:medium; font-weight:normal; padding: 2px; margin: 2px">
<i class="fa fa-calendar fa-fw"></i>
@ -8,20 +13,15 @@
<div style="float:right; font-size:small; font-weight: normal; padding: 2px; margin: 2px">
<time><em>Updated: {{ .Lastmod.Format "02 Jan 2006, 15:04" }} </em></time>
</div>
<br/>
</span>
<div class="featured-image">
{{ if isset .Params "image" }}
<img src="{{ with .Params.image }}{{ . }}{{ end }}" width="98%" height="385px"
style="border-color: #777777; border-width: thin; border-style: solid"/>
{{ end }}
</div>
{{ $baseUrl := .Site.BaseURL }}
<br/>
{{ if isset .Params "topics" }}
{{ $count := len .Params.topics }}
{{ if gt $count 0 }}
<div class="featured-image">
{{ if isset .Params "image" }}
<figure><img src="{{ with .Params.image }}{{ . }}{{ end }}" width="98%" height="375px"
style="border-color: #777777; border-width: thin; border-style: solid"/></figure>
{{ end }}
</div>
</span>
<div>
<i class="fa fa-folder fa-fw"></i>
{{ range $k, $v := .Params.topics }}
@ -31,7 +31,7 @@
</div>
{{ end }}
{{ end }}
{{ if isset .Params "tags" }}
{{ $count := len .Params.tags }}
{{ if gt $count 0 }}