mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-06 07:51:36 -05:00
It's probably better structure-wise to have it all consolidated in bobatheme. Then bbaovanc.com is only concerned about content, not stuff that I declared to be specific to my site. This came from when I had multiple sites running bobatheme in the background, so now it's just an arbitrary, legacy distinction. Fixes #86
63 lines
3.0 KiB
HTML
63 lines
3.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 }}
|
|
{{ if not hugo.IsServer }}
|
|
<script defer data-domain="bbaovanc.com" src="https://plausible.bbaovanc.com/js/bobalytics.outbound-links.js"></script>
|
|
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
|
{{ with resources.Get "js/share-event.js" | fingerprint "sha512" }}
|
|
<script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if eq .Layout "search" }}
|
|
{{ with resources.Get "css/search.css" | fingerprint "sha512" }}
|
|
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
{{ end }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ absURL "pagefind/pagefind-ui.css" }}" crossorigin="anonymous">
|
|
<script src="{{ absURL "pagefind/pagefind-ui.js" }}" crossorigin="anonymous"></script>
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', (event) => {
|
|
new PagefindUI({ element: "#search-box", showSubResults: true });
|
|
});
|
|
</script>
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.faviconSVG }}
|
|
<link rel="icon" href="{{ . | absURL }}" />
|
|
{{ end }}
|
|
{{ with .Site.Params.appleTouchPNG }}
|
|
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
|
{{ end }}
|
|
|
|
<title>{{ .Render "head_title" }}</title>
|
|
|
|
{{ range .Site.Params.rel_me }}
|
|
<link rel="me" href="{{ . }}" />
|
|
{{ 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 }}">
|
|
</head>
|