update layouts do include partials; preload fonts
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful
This commit is contained in:
parent
645cda9c23
commit
ffe43db394
5 changed files with 25 additions and 17 deletions
|
@ -1,11 +1,10 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<title>{{ or .Title .Site.Title }}{{ if ne .Kind "home" }} | {{ .CurrentSection.Title }}{{ end }}</title>
|
<title>{{ or .Title .Site.Title }}{{ if ne .Kind "home" }} | {{ .CurrentSection.Title }}{{ end }}</title>
|
||||||
{{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
|
{{ partial "head/defaults.html" . }}
|
||||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
{{ partial "head/styling.html" . }}
|
||||||
|
{{ partial "head/sharing.html" . }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ block "page" . }}{{ end }}
|
{{ block "page" . }}{{ end }}
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<title>{{ or .Title .Site.Title }}</title>
|
<title>{{ or .Title .Site.Title }}</title>
|
||||||
{{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
|
{{ partial "head/defaults.html" . }}
|
||||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
{{ partial "head/styling.html" . }}
|
||||||
|
{{ partial "head/sharing.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>{{ .Site.Title }}</h1>
|
<h1>{{ .Site.Title }}</h1>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
2
layouts/partials/head/defaults.html
Normal file
2
layouts/partials/head/defaults.html
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2
layouts/partials/head/sharing.html
Normal file
2
layouts/partials/head/sharing.html
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<meta property="og:title" content="Lauras Website">
|
||||||
|
<meta property="og:description" content="general website for Laura Kalb">
|
3
layouts/partials/head/styling.html
Normal file
3
layouts/partials/head/styling.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||||
|
<link rel="preload" href="/fonts/open-sans-v35-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
|
Loading…
Reference in a new issue