mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-01-23 02:06:16 -06:00
BBaoVanC
9ca15a198f
This reverts commits f33492ef8ec0c1fe8ab769dfcad267040bb2070b and 5c87c2b0694dd3ba410eaad6cad10f677d66809f. It turns out this makes performance score even worse because it makes the CLS really bad
47 lines
2.0 KiB
HTML
47 lines
2.0 KiB
HTML
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{{ hugo.Generator }}
|
|
|
|
{{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
|
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
{{ end }}
|
|
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
|
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
|
{{ end }}
|
|
{{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }}
|
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
|
|
{{ end }}
|
|
|
|
{{ with resources.Get "js/bobatheme.js" | fingerprint "sha512" }}
|
|
<script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
{{ end }}
|
|
{{ with resources.Get "js/share-event.js" | fingerprint "sha512" }}
|
|
<script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.faviconSVG }}
|
|
<link rel="icon" href="{{ . | absURL }}" />
|
|
{{ end }}
|
|
{{ with .Site.Params.appleTouchPNG }}
|
|
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
|
{{ end }}
|
|
|
|
{{ if .IsHome }}
|
|
<title>{{ .Site.Title | plainify }}</title>
|
|
{{ else }}
|
|
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
|
|
{{ end }}
|
|
|
|
{{ partial "seo-tags/opengraph.html" . }}
|
|
{{ partial "seo-tags/twitter-cards.html" . }}
|
|
{{ partial "seo-tags/schema.html" . }}
|
|
{{ partial "seo-tags/link.html" . }}
|
|
{{ partial "seo-tags/author.html" . }}
|
|
|
|
<meta name="language" content="{{ .Language.Lang }}">
|
|
<meta name="description" content="{{ (partial "seo-description.html" .) | plainify }}">
|
|
|
|
{{ partial "additional-head.html" . }}
|
|
</head>
|