micrach/templates/index.html

75 lines
2.6 KiB
HTML
Raw Normal View History

2021-08-28 17:34:58 +03:00
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Micrach</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We"
crossorigin="anonymous"
>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous">
</script>
2021-08-30 23:29:51 +03:00
<link
href="/static/index.css"
rel="stylesheet"
>
2021-08-29 11:09:52 +03:00
<!-- Primary Meta Tags -->
<title>Micrach</title>
<meta name="title" content="Micrach">
<meta name="description" content="Single board imageboard.">
2021-08-30 23:29:51 +03:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2021-08-29 11:09:52 +03:00
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://micrach.igonin.dev/">
<meta property="og:title" content="Micrach">
<meta property="og:description" content="Single board imageboard.">
<meta property="og:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
<!-- Twitter -->
<meta property="twitter:card" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
<meta property="twitter:url" content="https://micrach.igonin.dev/">
<meta property="twitter:title" content="Micrach">
<meta property="twitter:description" content="Single board imageboard.">
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
2021-08-28 17:34:58 +03:00
</head>
<body>
<h1 class="display-1 text-center">Welcome to Micrach</h1>
<div class="container">
2021-08-30 23:29:51 +03:00
<div class="row row-cols-auto gy-4">
2021-08-31 19:48:02 +03:00
{{range $Post := .}}
2021-08-30 23:29:51 +03:00
<div class="col col-sm-6 col-md-4 col-lg-3">
<div class="card">
2021-08-31 19:18:47 +03:00
2021-08-31 22:51:31 +03:00
{{ $length := len $Post.Files }} {{ if gt $length 0 }}
{{$FirstFile := index $Post.Files 0}}
2021-08-30 23:29:51 +03:00
<img
src="{{$FirstFile.Name}}"
class="card-img-top"
alt="Uploaded picture"
>
2021-08-31 22:51:31 +03:00
{{end}}
2021-08-30 23:29:51 +03:00
<div class="card-body">
2021-08-31 19:48:02 +03:00
<h5 class="card-title">{{$Post.Title}}</h5>
<p class="card-text">{{$Post.Text}}</p>
<a href="/{{$Post.ID}}" class="btn btn-outline-primary">Open</a>
2021-08-30 23:29:51 +03:00
</div>
</div>
</div>
2021-08-30 23:29:51 +03:00
{{end}}
</div>
2021-08-30 23:29:51 +03:00
</div>
2021-08-28 17:34:58 +03:00
</body>
</html>