summaryrefslogtreecommitdiff
path: root/layouts/_partials/head
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
committereltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
commit10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch)
tree62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_partials/head
parent3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff)
chore: move templates out of site repo
Diffstat (limited to 'layouts/_partials/head')
-rw-r--r--layouts/_partials/head/css.html19
-rw-r--r--layouts/_partials/head/scripts.html4
-rw-r--r--layouts/_partials/head/siteinfo.html59
-rw-r--r--layouts/_partials/head/verification.html10
4 files changed, 0 insertions, 92 deletions
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
deleted file mode 100644
index 7ff49fd5..00000000
--- a/layouts/_partials/head/css.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!-- Pagefind -->
-<link rel="stylesheet" href="/pagefind/pagefind-ui.css">
-
-<!-- Extra -->
-{{ range .Site.Params.extraCSSFiles -}}
-<link
- rel="stylesheet"
- href="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"
-/>
-{{- end }}
-
-<!-- theme css -->
-{{ with resources.Get "css/uno.css" | minify }}
-<style>{{ .Content | safeCSS }}</style>
-{{ end }}
-
-{{ with resources.Get "css/main.scss" | css.Sass | minify }}
-<style>{{ .Content | safeCSS }}</style>
-{{ end }}
diff --git a/layouts/_partials/head/scripts.html b/layouts/_partials/head/scripts.html
deleted file mode 100644
index f067944c..00000000
--- a/layouts/_partials/head/scripts.html
+++ /dev/null
@@ -1,4 +0,0 @@
-{{ with resources.Get "js/darkmode.js" }}
-<script>{{ .Content | safeJS }}</script>
-{{ end }}
-
diff --git a/layouts/_partials/head/siteinfo.html b/layouts/_partials/head/siteinfo.html
deleted file mode 100644
index e251a009..00000000
--- a/layouts/_partials/head/siteinfo.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!-- Link preview meta tags -->
-{{- $isHome := .IsHome -}}
-{{- $title := cond $isHome .Site.Title .Title -}}
-{{- $description := cond $isHome .Site.Params.description (default .Summary .Description | plainify) -}}
-{{- $ogType := cond $isHome "website" "article" -}}
-{{- $image := cond (isset .Params "banner")
- .Params.banner
- (cond (isset .Params "cover")
- .Params.cover
- .Site.Params.favicon)
--}}
-
-<title>{{ $title }}</title>
-<link rel="canonical" href="{{ .Permalink }}" />
-<meta name="author" content="{{ .Site.Params.author.name }}" />
-<link rel="icon" href="{{ .Site.Params.favicon }}">
-<meta property="og:url" content="{{ .Permalink }}" />
-<meta property="og:title" content="{{ $title }}" />
-<meta property="og:type" content="{{ $ogType }}" />
-<meta property="og:description" content="{{ $description }}" />
-<meta name="description" content="{{ $description }}" />
-<meta property="og:locale" content="{{ .Site.LanguageCode }}" />
-<meta property="og:image" content="{{ $image }}" />
-
-<!-- RSS -->
-<link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}">
-<link href="{{ .Site.Params.staticPrefix }}{{ "index.xml" | relURL }}" rel="alternate" type="application/rss+xml"
- title="{{ .Site.Title }}">
-
-<!-- JSON-LD -->
-<script type="application/ld+json">
- {
- "@context" : "http://schema.org",
- "@type" : "BlogPosting",
- "mainEntityOfPage": {
- "@type": "WebPage",
- "@id": "{{ .Site.BaseURL }}"
- },
- "articleSection" : "{{ .Section }}",
- "name" : "{{ .Title }}",
- "headline" : "{{ .Title }}",
- {{ if .IsHome -}}
- "description" : "{{ .Site.Params.description | plainify }}",
- {{- else -}}
- "description" : "{{ default .Summary .Description | plainify }}",
- {{- end }}
- "inLanguage" : "zh-CN",
- "author" : "{{ .Site.Params.author.name }}",
- "creator" : "{{ .Site.Params.author.name }}",
- "publisher": "{{ .Site.Params.author.name }}",
- "accountablePerson" : "{{ .Site.Params.author.name }}",
- "copyrightHolder" : "{{ .Site.Params.author.name }}",
- "copyrightYear" : "{{ .Date.Format "2006" }}",
- "datePublished": "{{ .Date }}",
- "dateModified" : "{{ .Date }}",
- "url" : "{{ .Permalink }}",
- "keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} ]
- }
-</script>
diff --git a/layouts/_partials/head/verification.html b/layouts/_partials/head/verification.html
deleted file mode 100644
index 11705435..00000000
--- a/layouts/_partials/head/verification.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!-- verify my identity -->
-<link rel="me" href="https://c7.io/@eltrac">
-<link rel="me" href="https://akk.eltr.ac/@eltrac">
-<link rel="me" href="https://github.com/BigCoke233" />
-<link rel="me" href="mailto:hi@guhub.cn" />
-<link rel="me" href="mailto:hi@eltr.ac" />
-<meta name="fediverse:creator" content="@eltrac@eltr.ac">
-
-<!-- webmention -->
-<link rel="webmention" href="https://wm.geedea.pro/endpoint" />