LoveIt/layouts/partials/post/footer.html

53 lines
2.2 KiB
HTML
Raw Normal View History

2019-08-18 19:36:52 +02:00
{{ $modify_date := .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") -}}
2019-08-24 13:32:41 +02:00
<div class="post-footer" id="post-footer">
2019-08-18 19:36:52 +02:00
<div class="post-info">
2019-08-19 07:26:39 +02:00
<div class="post-info-line">
<div class="post-info-mod">
<span>{{ printf (T "lastMod") $modify_date }}</span>
</div>
<div class="post-info-license">
{{ if .Params.license }}
<span>{{ printf (T "license") .Params.license | safeHTML }}</span>
{{ end }}
</div>
</div>
<div class="post-info-line">
<div class="post-info-md">
{{ if .Site.Params.linkToMarkdown }}
2019-08-19 07:26:39 +02:00
{{ with .OutputFormats.Get "markdown" }}
<span><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ T "seeMarkDown" }}</a></span>
{{ end }}
{{ end }}
</div>
<div class="post-info-share">
{{ if and ( .Param "socialShare" ) (gt (len (.Param "share")) 0) }}
<span>{{ partial "post/share.html" . }}</span>
{{ end }}
</div>
2019-08-18 19:36:52 +02:00
</div>
</div>
<div class="post-tags">
<section>
{{ with .Params.tags }}
{{ range . }}
<span class="tag">
2019-08-26 09:17:21 +02:00
<a href="{{ "tags/" | absURL }}{{ . | urlize }}/"><i class="fas fa-tag"></i>{{.}}</a>
2019-08-18 19:36:52 +02:00
</span>
{{ end }}
{{ end }}
</section>
<section>
<span><a href="javascript:window.history.back();">{{ T "back" }}</a></span>&nbsp;|&nbsp;<span><a href="{{ .Site.BaseURL }}">{{ T "home" }}</a></span>
</section>
</div>
<div class="post-nav">
{{ if .PrevInSection }}
2019-08-26 09:17:21 +02:00
<a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="fas fa-angle-left"></i>{{ .PrevInSection.Title}}</a>
2019-08-18 19:36:52 +02:00
{{ end }}
{{ if .NextInSection }}
<a href="{{.NextInSection.Permalink}}" class="next" rel="next" title="{{.NextInSection.Title}}">{{.NextInSection.Title}}&nbsp;<i class="fas fa-angle-right"></i></a>
{{ end }}
</div>
</div>