Adds some optimizations

This commit is contained in:
2020-07-08 23:04:06 +02:00
parent 1691698426
commit e19f7756e2
6 changed files with 13 additions and 10 deletions
+5 -5
View File
@@ -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 -1
View File
@@ -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 }}