This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/index.html

25 lines
733 B
HTML
Raw Normal View History

<!doctype html>
<html lang="en">
{{ partial "head.html" . }}
<body>
<a class="skip-link" href="#main">Skip to main</a>
<main id="main">
<div class="content">
{{ partial "header.html" . }}
{{ .Content }}
{{ if gt (len ( where .Site.RegularPages "Section" "posts" )) 0 }}
<h1>Latest Post</h1>
<section>
{{ range (first 3 (where .Site.RegularPages "Section" "posts" ).ByDate.Reverse) }}
<p>
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>&nbsp;
<a href="{{ .Permalink }}">{{ .Title }}</a>
<p>
{{ end }}
</section>
{{ end }}
</div>
</main>
</body>
</html>