fosscat-site/layouts/partials/page.html

25 lines
653 B
HTML

<div class="post container">
<div class="post-header-section">
<h1>{{ .Title | markdownify }}</h1>
{{ if ne .File.Path "projects.md" }}
<p class="post-date">
{{ if eq .Date .Lastmod }}
{{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Date}}
{{ end }}
{{ if lt .Date .Lastmod }}
Updated {{ dateFormat (or .Site.Params.dateFormat "January 2, 2006") .Lastmod }}
{{ end }}
</p>
{{ end }}
</div>
<div class="post-content">
{{ .Content }}
</div>
<!-- Back to top button -->
{{ if .Site.Params.ShowBackToTopButton }}
{{ partial "back-to-top.html" . }}
{{ end }}
</div>