Skip to content

Commit

Permalink
fix: template
Browse files Browse the repository at this point in the history
  • Loading branch information
Fupete committed Dec 28, 2023
1 parent 2891975 commit a46ee18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layouts/base.njk
Original file line number Diff line number Diff line change
@@ -4,16 +4,15 @@
<head>
{# <link rel="alternate" hreflang="{{ page.lang }}" href="{{page.url}}"> #}
{% for link in page.url | locale_links %}
<link rel="alternate" hreflang="{{link.lang}}" href="https://fupete.github.io/danieletabellini{{link.url}}">
<link rel="alternate" hreflang="{{link.lang}}" href="https://danieletabellini.com{{link.url}}">
{% endfor %}

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ meta.title }}</title>


<link rel="preload" href="{{ '/assets/fonts/inter/Inter-Regular-subset.woff2' | url }}" as="font" type="font/woff2"
crossorigin="">
<link rel="preload" href="{{ '/assets/fonts/inter/Inter-Regular-subset.woff2' | url }}" as="font" type="font/woff2" crossorigin>

{% include "meta.njk" %}

@@ -32,9 +31,10 @@
Promise.all([
document.fonts.load("400 1em 'Inter'"),
document.fonts.load("500 1em 'Inter'"),
document.fonts.load("600 1em 'Inter'"),
document.fonts.load("700 1em 'Inter'"),
document.fonts.load("italic 1em 'Inter'"),
document.fonts.load("italic 700 1em 'Inter'")
document.fonts.load("900 1em 'Inter'"),
]).then(function () {
document.documentElement.className += " fonts-loaded-2";

0 comments on commit a46ee18

Please sign in to comment.