Adds some optimizations

pull/3/head v2.0.0
Maik de Kruif 4 years ago
parent 1691698426
commit e19f7756e2
No known key found for this signature in database
GPG Key ID: 9C085A705D588C2F
  1. 1
      .gitignore
  2. 3
      resources/_gen/assets/scss/scss/main.scss_de1a7f5f1c8c46959803c429bb697ff0.content
  3. 1
      resources/_gen/assets/scss/scss/main.scss_de1a7f5f1c8c46959803c429bb697ff0.json
  4. 10
      themes/maik-blog/assets/scss/_fonts.scss
  5. 2
      themes/maik-blog/layouts/index.html
  6. 6
      themes/maik-blog/layouts/partials/head.html

1
.gitignore vendored

@ -1,2 +1,3 @@
# Hugo default output directory
public/
resources/_gen/

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
{"Target":"main.e9b492b7c8114a36f5efea9cdbb748d9ce34ab94852195af017a2411e8f19c3d.css","MediaType":"text/css","Data":{"Integrity":"sha256-6bSSt8gRSjb17+qc27dI2c40q5SFIZWvAXokEejxnD0="}}

@ -1,7 +1,7 @@
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-display: auto;
font-display: fallback;
font-weight: 400;
src: url("../fonts/Inter-UI-Regular.woff2") format("woff2"),
url("../fonts/Inter-UI-Regular.woff") format("woff");
@ -10,7 +10,7 @@
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-display: auto;
font-display: fallback;
font-weight: 400;
src: url("../fonts/Inter-UI-Italic.woff2") format("woff2"),
url("../fonts/Inter-UI-Italic.woff") format("woff");
@ -28,7 +28,7 @@
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-display: auto;
font-display: fallback;
font-weight: 600;
src: url("../fonts/Inter-UI-MediumItalic.woff2") format("woff2"),
url("../fonts/Inter-UI-MediumItalic.woff") format("woff");
@ -37,7 +37,7 @@
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-display: auto;
font-display: fallback;
font-weight: 800;
src: url("../fonts/Inter-UI-Bold.woff2") format("woff2"),
url("../fonts/Inter-UI-Bold.woff") format("woff");
@ -46,7 +46,7 @@
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-display: auto;
font-display: fallback;
font-weight: 800;
src: url("../fonts/Inter-UI-BoldItalic.woff2") format("woff2"),
url("../fonts/Inter-UI-BoldItalic.woff") format("woff");

@ -1,5 +1,5 @@
{{ define "main" }}
<main aria-role="main">
<main role="main">
<div>
{{ if .Site.Params.Portrait.Path }}
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}"

@ -11,6 +11,12 @@
<!-- <meta name="theme-color" content="{{ .Site.Params.themeColor }}" /> -->
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="preload" href="{{ .Site.BaseURL }}fonts/Inter-UI-Regular.woff2" as="font" type="font/woff2"
crossorigin="anonymous">
<link rel="preload" href="{{ .Site.BaseURL }}fonts/Inter-UI-Bold.woff2" as="font" type="font/woff2"
crossorigin="anonymous">
{{ block "title" . }}
<title>
{{ if .IsHome }}

Loading…
Cancel
Save