haasp.net/layouts/partials/flex/body-aftercontent.html

61 lines
1.3 KiB
HTML

<div class="chevrons">
{{ partial "next-prev-page.html" . }}
</div>
<footer>
<div class="footline">
{{if .Params.tags }}
<div class="tags">
{{ range $index, $tag := .Params.tags }}
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}">{{ $tag }}</a>
{{ end }}
</div>
{{end}}
{{with .Params.LastModifierDisplayName}}
<div class="author">
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a>
</div>
{{end}}
{{ if not .Page.Lastmod.IsZero }}
<div class="date">
<i class='fa fa-calendar'></i> {{T "last-update-on"}} {{ .Page.Lastmod.Format "02/01/2006" }}
</div>
{{end}}
{{ if .Site.Params.editURL }}
<div class="github-link">
<a href="{{ .Site.Params.editURL }}{{ replace .File.Dir "\\" "/" }}{{ .File.LogicalName }}" target="blank"><i class="fa fa-code-fork"></i>
{{T "Edit-this-page"}}</a>
</div>
{{end}}
</div>
<div>
{{ $footer := print "_footer." .Lang }}
{{ $found := false }}
{{ range .Site.Pages }}
{{ if and .File (eq .File.BaseFileName $footer) }}
{{ .Content }}
{{ $found = true }}
{{ end }}
{{ end }}
{{ if not $found }}
{{ if .Site.GetPage "page" "_footer.md" }}
{{(.Site.GetPage "page" "_footer.md").Content}}
{{else}}
{{ T "create-footer-md" }}
{{end}}
{{end}}
</div>
</footer>
</section>
</article>