A Telegram Bot for collecting the photos of your children
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

45 lines
1.1 KiB

<!DOCTYPE html>
<html>
<head>
<title>{{ .I18n.SiteName }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=contain">
<link rel="stylesheet" href="/css/main.css">
</head>
<body class="index">
<h1>{{ .I18n.SiteName }}</h1>
<p>{{ .I18n.Bio }}</p>
<h2>{{ .I18n.LastMedia }}</h2>
<ul class="media">
{{ range .LastMedia }}
<li>
<a href="latest/media/{{ .ID }}/"><img src="latest/raw/{{ .Files|photo }}" /></a>
</li>
{{ end }}
<li><!-- Empty Flex element so that "justify-content: space-between" work as expected --></li>
</ul>
<h2>{{ .I18n.AllAlbums }}</h2>
<ul class="album">
{{ range .Albums }}
<li>
{{ if eq .ID "" }}
<a href="latest/">
{{ else }}
<a href="{{ .ID }}/">
{{ end }}
<div><!-- Empty Flex element so that "justify-content: space-between" work as expected --></div>
{{ if ne .CoverMedia.ID "" }}
{{ if eq .ID "" }}
<img src="latest/raw/{{ .CoverMedia.Files|photo }}" />
{{ else }}
<img src="{{ .ID }}/raw/{{ .CoverMedia.Files|photo }}" />
{{ end }}
{{ else }}
<div class="no-cover">🚧</div>
{{ end }}
<div>{{ .Title }}</div></a>
</li>
{{ end }}
</ul>
</body>
</html>