Files
LuPhoto/internal/site/templates/index.html
T
2026-11-04 04:40:33 -08:00

27 lines
955 B
HTML

<!doctype html>
<html lang="en">
<head>
{{template "head" .}}
<link rel="preload" href="{{.IndexURL}}" as="fetch" crossorigin>
</head>
<body class="index-page" data-page="index"{{template "body-data" .}}>
<header class="site-header">
<a class="wordmark" href="/" aria-label="Lucio, all albums"><span class="wordmark-text">Lucio</span></a>
</header>
<main id="strips" class="strips">
<h1 class="visually-hidden">Photos by Lucio</h1>
{{- range .Albums}}
<a class="strip" href="/a/{{.Slug}}/" data-slug="{{.Slug}}">
<span class="strip-text">{{if .Date}}<span class="strip-eyebrow">{{.Date}}</span>{{end}}<span class="strip-title">{{.Title}}</span>{{if .Subtitle}}<span class="strip-subtitle">{{.Subtitle}}</span>{{end}}</span>
</a>
{{- else}}
<p class="empty">No albums yet.</p>
{{- end}}
</main>
<footer class="site-footer">
<p class="footer-line">Guoliang Chen · 陈国梁 · Lucio</p>
<span class="chop">{{.Assets.Chop}}</span>
</footer>
</body>
</html>