forked from web/portal
init
This commit is contained in:
17
layouts/_default/baseof.html
Normal file
17
layouts/_default/baseof.html
Normal 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>
|
||||
29
layouts/_default/single.html
Normal file
29
layouts/_default/single.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user