2026-07-02 00:53:17 +02:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
<title>{{.Photo.Caption}}</title>
|
2026-07-02 02:30:35 +02:00
|
|
|
|
<link rel="stylesheet" href="{{.FontsURL}}">
|
2026-07-02 00:53:17 +02:00
|
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
2026-07-02 02:30:35 +02:00
|
|
|
|
<style>:root { --serif: '{{.SerifFamily}}', Georgia, serif; --mj: '{{.MlFamily}}', sans-serif; }</style>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
<link rel="alternate" type="application/atom+xml" href="/feed.xml" title="Photo Feed">
|
2026-07-03 23:03:54 +02:00
|
|
|
|
{{if .Newer}}<link rel="prefetch" href="/photo/{{.Newer.Slug}}/">{{end}}
|
|
|
|
|
|
{{if .Older}}<link rel="prefetch" href="/photo/{{.Older.Slug}}/">{{end}}
|
2026-07-02 00:53:17 +02:00
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="photo-page">
|
2026-07-03 23:03:54 +02:00
|
|
|
|
<nav class="photo-nav">
|
|
|
|
|
|
<a href="/" class="back-btn">← Back</a>
|
2026-07-03 23:11:11 +02:00
|
|
|
|
<span class="photo-nav-neighbours">
|
|
|
|
|
|
{{if .Newer}}<a href="/photo/{{.Newer.Slug}}/" data-nav="newer">← Newer</a>{{end}}
|
|
|
|
|
|
{{if and .Newer .Older}} / {{end}}
|
|
|
|
|
|
{{if .Older}}<a href="/photo/{{.Older.Slug}}/" data-nav="older">Older →</a>{{end}}
|
|
|
|
|
|
</span>
|
2026-07-03 23:03:54 +02:00
|
|
|
|
</nav>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
<div class="dlayout">
|
|
|
|
|
|
<div class="dimg-wrap">
|
2026-07-02 01:53:23 +02:00
|
|
|
|
<a href="/{{.Photo.File}}" target="_blank" rel="noopener">
|
|
|
|
|
|
<img src="/{{.Photo.Medium}}" alt="{{.Photo.Caption}}">
|
|
|
|
|
|
</a>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="dsidebar">
|
|
|
|
|
|
<div class="dauthor">
|
2026-07-02 02:30:35 +02:00
|
|
|
|
<div class="mini-avatar"><span>{{.Initial}}</span></div>
|
|
|
|
|
|
<span class="dauthor-name">{{.Author}}</span>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
<p class="dcaption">{{.Photo.Caption}}</p>
|
|
|
|
|
|
<p class="ddate">{{.Photo.Date.Format "Jan 02, 2006"}}</p>
|
2026-07-02 01:53:23 +02:00
|
|
|
|
<p class="dfull"><a href="/{{.Photo.File}}" download>↓ Full size</a></p>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-07-02 02:18:32 +02:00
|
|
|
|
|
|
|
|
|
|
<footer class="site-footer">
|
2026-07-02 02:30:35 +02:00
|
|
|
|
© 2000–{{.Year}} {{.Author}}. All rights reserved.
|
2026-07-02 02:18:32 +02:00
|
|
|
|
</footer>
|
2026-07-03 23:03:54 +02:00
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
(function () {
|
|
|
|
|
|
const newer = document.querySelector('[data-nav="newer"]');
|
|
|
|
|
|
const older = document.querySelector('[data-nav="older"]');
|
|
|
|
|
|
document.addEventListener('keydown', (e) => {
|
|
|
|
|
|
if (e.target.matches('input, textarea')) return;
|
|
|
|
|
|
if (e.key === 'ArrowLeft' && newer) location.href = newer.href;
|
|
|
|
|
|
if (e.key === 'ArrowRight' && older) location.href = older.href;
|
|
|
|
|
|
});
|
|
|
|
|
|
})();
|
|
|
|
|
|
</script>
|
2026-07-02 00:53:17 +02:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|