Hello whiny.lol

This commit is contained in:
2026-03-09 18:41:02 +00:00
commit b880a1acc2
181 changed files with 3017 additions and 0 deletions

27
layouts/_partials/head.html Executable file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $title := print .Title " - " .Site.Title }}<title>{{ $title }}</title>
{{ $bundle := slice (resources.Get "css/fonts.css") (resources.Get "css/styles.css") | resources.Concat "css/bundle.css" }}
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" crossorigin="anonymous">
{{ $js := resources.Get "js/menu.js" }}<script src="{{ $js.RelPermalink }}"></script>
{{ if eq hugo.Environment "production" }}
<script data-goatcounter="https://analytics.whiny.lol/count" async src="//analytics.whiny.lol/count.js"></script>
{{ end }}
<meta name="darkreader-lock"> <!-- Exclude site from Dark Reader browser extension -->
{{ if or (eq hugo.Environment "staging") (eq hugo.Environment "development") }}
<link rel="icon" href="/dev/favicon.ico" sizes="32x32">
<link rel="icon" href="/dev/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/dev/apple-touch-icon.png">
{{ else }}
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
<meta name="author" content="{{ .Site.Params.author }}">
{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}
{{ end }}
</head>