website/layouts/index.html
Philipp Rothmann 94d1bbb341 init
2023-02-24 18:59:53 +01:00

57 lines
No EOL
1.8 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/assets/main.css" />
<link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome.min.css">
<link rel="stylesheet" href="/vendor/font-awesome/css/solid.min.css">
<link rel="stylesheet" href="/vendor/font-awesome/css/brands.min.css">
{{ range .Site.Params.custom_css -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
{{ template "_internal/opengraph.html" . }}
{{ if (fileExists "/static/favicon.png") }}
<link rel="icon" type="image/png" href="favicon.png" />
{{ end }}
<title>{{ .Site.Title }}</title>
</head>
<body>
{{ if (fileExists "/static/favicon.png") }}
<img class="logo" src="/favicon.png" alt="Logo" />
{{ end }}
<ul class="social-icons">
{{ if isset .Site.Params "github" }}<li><a href="{{ .Site.Params.github }}" title="Code" target="_blank"><i aria-hidden="true"
class="fab fa-github"></i></a></li>{{ end }}
</ul>
{{ block "main" . }}
{{ end }}
<h1>{{ .Site.Title }}</h1>
<p>{{ .Site.Params.tagline }}</p>
<div class="contact">
<a href="mailto:foodsoft@local-it.org"><i aria-hidden="true" class="fa fa-envelope"></i> Kontakt</a>
<a href="https://git.local-it.org/foodsoft/foodsoft" target="_blank"><i aria-hidden="true" class="fa fa-code"></i> Code</a>
</div>
<div id="benefits">
{{ range where .Site.Pages "Section" "benefits" }}
{{ if in .Path ".md" }}
<div>
<h2><i class="fas {{ .Params.icon }}"></i>{{ .Title }}</h2>
{{ .Content }}
</div>
{{ end }}
{{ end }}
</div>
<img src="foodcoop-explained.jpg" style="width: 1200px"/>
<div class="footer">
{{ with .Site.GetPage "/footer" }}
{{ .Content }}
{{ end }}
</div>
</body>
</html>