From 5b476f8905f411768e23cb01d577a60e5a5fd725 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:43:22 +0200 Subject: chore: extract theme into git submodule (danix2-hugo-theme) --- .../layouts/partials/head-meta.html | 57 ---------------------- 1 file changed, 57 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/partials/head-meta.html (limited to 'themes/danix-xyz-hacker/layouts/partials/head-meta.html') diff --git a/themes/danix-xyz-hacker/layouts/partials/head-meta.html b/themes/danix-xyz-hacker/layouts/partials/head-meta.html deleted file mode 100644 index 34a60e2..0000000 --- a/themes/danix-xyz-hacker/layouts/partials/head-meta.html +++ /dev/null @@ -1,57 +0,0 @@ -{{/* description: per-page excerpt wins over site-wide description */}} -{{ $description := .Site.Language.Params.siteDescription }} -{{ with .Params.excerpt }}{{ $description = . }}{{ end }} - -{{/* og:type: "article" only for single content pages that have a date */}} -{{ $ogType := "website" }} -{{ if and (eq .Kind "page") .Date }}{{ $ogType = "article" }}{{ end }} - -{{/* og:image: page image wins; fall back to lamp for homepage, dark thumbnail for articles */}} -{{ $defaultImage := "images/default_thumbnail_dark.png" }} -{{ if .IsHome }}{{ $defaultImage = "images/lampD.png" }}{{ end }} -{{ $ogImage := printf "%s%s" .Site.BaseURL $defaultImage }} -{{ with .Params.image }}{{ $ogImage = printf "%s%s" $.Site.BaseURL (strings.TrimLeft "/" .) }}{{ end }} - -{{/* author: page-level param wins; fall back to site param */}} -{{ $author := .Site.Params.author }} -{{ with .Params.author }}{{ $author = . }}{{ end }} - - - - - - - - - - - -{{ if eq $ogType "article" }} - - -{{ end }} - - - - - -{{ with .Site.Params.twitterHandle }} - -{{ end }} - -{{/* SEO: Self-referencing canonical */}} - - -{{/* SEO: hreflang alternates for all language variants */}} -{{ range .AllTranslations }} - -{{ end }} -{{/* x-default: EN version (served at root /) */}} -{{ range .AllTranslations }} - {{ if eq .Language.Lang "en" }} - - {{ end }} -{{ end }} - -{{/* Structured data: BreadcrumbList JSON-LD (single pages and named sections) */}} -{{ if or (eq .Kind "page") (eq .Kind "section") }}{{ partial "breadcrumb-jsonld.html" . }}{{ end }} -- cgit v1.2.3