Killed Google Fonts für selbst gehostete Versionen
This commit is contained in:
parent
141a4accc9
commit
c48c56988f
2 changed files with 2 additions and 16 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "OpenSansVar";
|
font-family: "OpenSansVar";
|
||||||
src: url( '../fonts/MOpenSans-VariableFont_wdth_wght.ttf' );
|
src: url( '../fonts/OpenSans-VariableFont_wdth_wght.ttf' );
|
||||||
}
|
}
|
||||||
|
|
||||||
.verua-slider-wrapper {
|
.verua-slider-wrapper {
|
||||||
|
|
|
||||||
|
|
@ -9,25 +9,11 @@
|
||||||
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
|
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
|
||||||
<link rel="dns-prefetch" href="//www.googletagmanager.com" />
|
<link rel="dns-prefetch" href="//www.googletagmanager.com" />
|
||||||
<link rel="dns-prefetch" href="//www.google-analytics.com" />
|
<link rel="dns-prefetch" href="//www.google-analytics.com" />
|
||||||
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
|
|
||||||
<link rel="dns-prefetch" href="//connect.facebook.net" />
|
<link rel="dns-prefetch" href="//connect.facebook.net" />
|
||||||
<link rel="dns-prefetch" href="//platform.linkedin.com" />
|
<link rel="dns-prefetch" href="//platform.linkedin.com" />
|
||||||
<link rel="dns-prefetch" href="//platform.twitter.com" />
|
<link rel="dns-prefetch" href="//platform.twitter.com" />
|
||||||
|
|
||||||
<!-- google fonts -->
|
|
||||||
{{ $pf:= site.Data.theme.fonts.font_family.primary }}
|
|
||||||
{{ $sf:= site.Data.theme.fonts.font_family.secondary }}
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
||||||
<script>
|
|
||||||
(function () {
|
|
||||||
const googleFont = document.createElement("link");
|
|
||||||
googleFont.href = "https://fonts.googleapis.com/css2?family={{$pf | safeURL}}{{with $sf}}&family={{. | safeURL}}{{end}}&display=swap";
|
|
||||||
googleFont.type = "text/css";
|
|
||||||
googleFont.rel = "stylesheet";
|
|
||||||
document.head.appendChild(googleFont);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- plugins + stylesheet -->
|
<!-- plugins + stylesheet -->
|
||||||
{{ $styles := slice }}
|
{{ $styles := slice }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue