clean up post_meta page

This commit is contained in:
Greg Gauthier 2021-12-03 13:09:48 +00:00
parent 619a504ecf
commit 9fba0cdde5

View File

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