Browse Source

Fixing a lot of bugs related to first deployment.

master
Ad5001 4 months ago
parent
commit
5e72906101
Signed by: Ad5001 GPG Key ID: EF45F9C6AFE20160
  1. 2
      layouts/404.html
  2. 11
      layouts/partials/head.html
  3. 2
      layouts/partials/header.html

2
layouts/404.html

@ -1,3 +1,3 @@
{{ define "main"}}
{{ partial "section1.html" (dict "Image" "/img/app0.png" "Content" ("<h1>404. Page not found</h1><br><a role='button' class='primary' href='/'>Return to main page</a>" | safeHTML)) }}
{{ partial "section1.html" (dict "Image" "" "Content" ("<h1>404. Page not found</h1><br><a role='button' class='primary' href='/'>Return to main page</a>" | safeHTML)) }}
{{ end }}

11
layouts/partials/head.html

@ -1,17 +1,18 @@
<head>
<title>{{ .Site.Title }} - {{ .Title }}</title>
<meta charset="UTF-8">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Regular.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Light.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Bold.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.woff2?54316140">
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS }}
{{ if .Site.Params.includeAppsStyle }}
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS }}
{{ $style := slice $mainstyle $appsstyle | resources.Concat "css/bundle.css" | minify }}
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS }}
{{ $style := slice $mainstyle $appsstyle | resources.Concat "css/bundle.css" | minify }}
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
{{ else }}
{{ $style := $mainstyle | minify }}
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
{{ $style := $mainstyle | minify }}
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
{{ end }}
{{ $printstyle := resources.Get "/scss/print.scss" | toCSS | minify }}
<link rel="stylesheet" href="{{ $printstyle.Permalink }}" media="print">

2
layouts/partials/header.html

@ -54,7 +54,7 @@
{{ range .Translations }}
<li class="background">
<a href="{{ .Permalink }}" role="button">
<img src="/icons/flag/{{ .Language.Lang }}.svg" class="icon-as-text" loading=lazy/>{{ .Language.LanguageName }}
<img src="/icons/flag/{{ .Language.Lang }}.svg" class="icon-as-text" loading=lazy width=21 height=21/>{{ .Language.LanguageName }}
</a>
</li>
{{ end }}

Loading…
Cancel
Save