This commit is contained in:
Thomas Dedek
2019-12-18 11:37:56 +01:00
commit a6e9d9230f
39 changed files with 1152 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<!doctype html>
<html lang="{{.Site.Language.Lang }}">
<head>
<title>Ecogood portal</title>
<link rel="stylesheet" href="{{ "ecogood.css" | absURL }}"/>
<link rel="icon" href="{{ "favicon-cropped.webp" | absURL }}" sizes="32x32" />
<link rel="icon" href="{{ "favicon.webp" | absURL }}" sizes="192x192" />
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}" />
<meta name="msapplication-TileImage" content="{{ "favicon.webp" | absURL }}" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body style="background-image: url({{ "background.png" | absURL }});">
<h1 style="text-align: center">Ecogood Portal</h1>
{{ block "main" . }}{{ end }}
</body>
</html>

View File

@@ -0,0 +1,29 @@
{{ define "main" }}
<h1 style="text-align: center">{{ .Title }}</h1>
<div>
{{ .Content }}
</div>
{{ range .Params.items }}
<a class="item-box" href="{{ .url }}" target="_blank">
<div class="image-box">
<img src="{{ .icon | absURL }}"/>
</div>
<div class="text-box">
<h2>{{ .title }}</h2>
{{ $found := false }}
{{ range $key, $value := .description }}
{{ if eq (string $.Site.Language) $key }}
<p>{{ $value }}</p>
{{ $found = true }}
{{ end }}
{{ end }}
{{ if eq $found false }}
<p>{{ .description.en }}</p>
{{ end }}
</div>
</a>
{{ end }}
{{ end }}