forked from data.coop/website
Fix language-aware redirect from header logo and other stuff
This commit is contained in:
parent
3519e9d841
commit
cd06781700
|
@ -1,10 +1,10 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ site.Language }}">
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<aside>
|
||||
<header>
|
||||
<a href="/"><img src="{{ printf "/static/img/logo_%s.svg" .Site.Language.Lang | absURL }}" alt="data coop logo" width="240" height="140"></a>
|
||||
<a href="{{ .Site.Home.Permalink }}"><img src="/static/img/logo_{{ .Site.Language.Lang }}.svg" alt="data.coop logo" width="240" height="140"></a>
|
||||
|
||||
<div class="nav-toggle" id="nav-toggle-header">
|
||||
<span id="nav-toggle-a"></span>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
{{ range $badge_key, $badge := $translated_badges.badges.badges }}
|
||||
|
||||
<div class="badge-icon">
|
||||
{{$svg := printf "static/static/img/badges/%s" .icon}}
|
||||
{{ $svg | readFile | safeHTML }}
|
||||
{{ $svg := printf "static/static/img/badges/%s" .icon }}
|
||||
{{ $svg | readFile | safeHTML }}
|
||||
</div>
|
||||
<div class="badge-name">{{ title .name }}</div>
|
||||
|
||||
|
|
|
@ -9,17 +9,16 @@
|
|||
<meta name="description" content="{{ . }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/static/img" | absURL }}/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/static/img" | absURL }}/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/static/img" | absURL }}/favicon-16x16.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/static/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/static/img/favicon-16x16.png">
|
||||
<link rel="manifest" href="{{ "" | absURL }}/site.webmanifest">
|
||||
<link rel="mask-icon" href="{{ "/static/img" | absURL }}/safari-pinned-tab.svg" color="#4b3aba">
|
||||
<link rel="mask-icon" href="/static/img/safari-pinned-tab.svg" color="#4b3aba">
|
||||
<meta name="msapplication-TileColor" content="#4b3aba">
|
||||
<meta name="theme-color" content="#4b3aba">
|
||||
|
||||
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
|
||||
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
|
||||
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
||||
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@ license: "MIT"
|
|||
licenselink: "https://github.com/zwbetz-gh/minimal-bootstrap-hugo-theme/blob/master/LICENSE"
|
||||
description: "Yay data.coop theme - started with this one https://github.com/zwbetz-gh/minimal-bootstrap-hugo-theme/"
|
||||
homepage: "https://data.coop"
|
||||
tags: ["nice",]
|
||||
tags: ["nice"]
|
||||
features: ["responsive", "small page size", "fuck google", "no tracking"]
|
||||
min_version: "0.60.1"
|
||||
|
||||
|
|
Loading…
Reference in a new issue