Fixing a lot of bugs related to first deployment.
This commit is contained in:
parent
cf25bd95fb
commit
5e72906101
3 changed files with 8 additions and 7 deletions
|
@ -1,3 +1,3 @@
|
||||||
{{ define "main"}}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
|
@ -1,17 +1,18 @@
|
||||||
<head>
|
<head>
|
||||||
<title>{{ .Site.Title }} - {{ .Title }}</title>
|
<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-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-Light.otf">
|
||||||
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Bold.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">
|
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.woff2?54316140">
|
||||||
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS }}
|
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS }}
|
||||||
{{ if .Site.Params.includeAppsStyle }}
|
{{ if .Site.Params.includeAppsStyle }}
|
||||||
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS }}
|
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS }}
|
||||||
{{ $style := slice $mainstyle $appsstyle | resources.Concat "css/bundle.css" | minify }}
|
{{ $style := slice $mainstyle $appsstyle | resources.Concat "css/bundle.css" | minify }}
|
||||||
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $style := $mainstyle | minify }}
|
{{ $style := $mainstyle | minify }}
|
||||||
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
<link rel="preload" href="{{ $style.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $printstyle := resources.Get "/scss/print.scss" | toCSS | minify }}
|
{{ $printstyle := resources.Get "/scss/print.scss" | toCSS | minify }}
|
||||||
<link rel="stylesheet" href="{{ $printstyle.Permalink }}" media="print">
|
<link rel="stylesheet" href="{{ $printstyle.Permalink }}" media="print">
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
{{ range .Translations }}
|
{{ range .Translations }}
|
||||||
<li class="background">
|
<li class="background">
|
||||||
<a href="{{ .Permalink }}" role="button">
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue