blog/themes/shockrah.xyz/layouts/index.html

24 lines
692 B
HTML
Raw Normal View History

2021-08-14 20:46:18 +00:00
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="layout">
<div id="main">
<div class="content">
2021-08-17 04:34:17 +00:00
<h1>Welcome to my not-a-blog</h1>
<!-- Title | date | description is all we want from each post -->
{{ $articles := where .Site.Pages "Params.Category" "article" }}
{{ range $articles }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<blockquote><p>{{.Date.Format "January 2, 2006"}}</p></blockquote>
{{ if isset .Params "description" }}
<blockquote><p>{{ .Description }}</p></blockquote>
{{ end }}
{{ end }}
</div>
2021-08-14 20:46:18 +00:00
</div>
</div>
</body>
</html>