jlelse
/
Indieroad
Archived
1
Fork 0

Fix meta display

This commit is contained in:
Jan-Lukas Else 2019-12-25 14:35:57 +01:00
parent a9dca6c2b8
commit 7fd856a2ad
3 changed files with 4 additions and 2 deletions

View File

@ -5,9 +5,11 @@
{{ with .Title }}
<h1 class="p-name post-title">{{ . }}</h1>
{{ end }}
{{ if not .Params.nometa }}
{{ with partial "post_meta.html" . }}
<div class="post-meta">{{ . }}</div>
{{ end }}
{{ end }}
</header>
<div class="e-content content clearfix">
{{ with .Params.audio }}

View File

@ -11,9 +11,11 @@
</a>
{{ end }}
{{ end }}
{{ if not .Params.nometa }}
{{ with partial "post_meta.html" . }}
<div class="list-meta">{{ . }}</div>
{{ end }}
{{ end }}
</div>
{{ if (or .Params.showFull (not .Truncated)) }}
<div class="list-excerpt e-content">

View File

@ -1,4 +1,3 @@
{{ if not .Params.nometa }}
{{ if not .Date.IsZero }}
<div class="item">
<time class="dt-published" datetime="{{.Date.Format "2006-01-02 15:04"}}"><a class="u-url" href="{{ .RelPermalink }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</a></time>
@ -28,7 +27,6 @@
<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener">{{ T "share" }}</a>
</div>
{{ end }}
{{ end }}
{{ with .Param "syndicate" }}
<div class="item">
{{ T "also_on" }}:{{ $delimiter := "" }}{{ range $index, $link := . }}{{ $delimiter }} <a class="u-syndication" href="{{ $link }}">{{ (urls.Parse $link).Host }}</a>{{ $delimiter = "," }}{{ end }}