Fixing a lot of bugs related to first deployment.

This commit is contained in:
Adsooi 2021-08-09 01:07:03 +02:00
parent cf25bd95fb
commit 5e72906101
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
3 changed files with 8 additions and 7 deletions

View file

@ -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 }}

View file

@ -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">

View file

@ -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 }}