summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-10 22:50:21 +0800
committereltrac <hi@eltr.ac>2026-03-10 22:50:21 +0800
commit8464d97413ebd73e0b268818f3a5e307ea33d8ee (patch)
tree3bfeff34bc7ac12b8afb0d6a3ce9f2dd395f4cf2 /layouts
parent98f00aba368340b1b91430e68b8535c0cacea8dd (diff)
parenta7aadc7162d7d6ffeb31d57a7f9c9ccb72dde3e6 (diff)
Merge branch 'master' into draft
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/components/date.html2
-rw-r--r--layouts/_partials/components/microformats.html2
-rw-r--r--layouts/_partials/content.html2
-rw-r--r--layouts/_partials/template/post-page.html5
-rw-r--r--layouts/baseof.html1
-rw-r--r--layouts/fiction/page.html5
-rw-r--r--layouts/library/page.html5
7 files changed, 12 insertions, 10 deletions
diff --git a/layouts/_partials/components/date.html b/layouts/_partials/components/date.html
index 5fcb8c65..398e2b1d 100644
--- a/layouts/_partials/components/date.html
+++ b/layouts/_partials/components/date.html
@@ -17,7 +17,7 @@
{{ end }}
{{ end }}
- <time class="post-date"
+ <time class="post-date dt-published"
datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}"
data-pagefind-sort="date[datetime], weight[data-weight]"
data-weight="20">
diff --git a/layouts/_partials/components/microformats.html b/layouts/_partials/components/microformats.html
index c3057a14..cc6bc0bc 100644
--- a/layouts/_partials/components/microformats.html
+++ b/layouts/_partials/components/microformats.html
@@ -1,4 +1,4 @@
-<div class="hidden h-card pt">
+<div class="hidden p-author h-card pt">
<img class="u-photo icon" alt="{{ .Site.Params.author.name }}"
src="{{ printf "%s%s" .Site.Params.assetBaseUrl .Site.Params.author.avatar }}" />
<a class="p-name u-url" href="{{ .Site.BaseURL }}"
diff --git a/layouts/_partials/content.html b/layouts/_partials/content.html
index e1baae34..c3c61cd5 100644
--- a/layouts/_partials/content.html
+++ b/layouts/_partials/content.html
@@ -1,4 +1,4 @@
-<div class="min-h-[60%] leading-loose mb-8 markdown-body text-size-md md:text-size-lg"
+<div class="e-content min-h-[60%] leading-loose mb-8 markdown-body text-size-md md:text-size-lg"
style="view-transition-name: post-content-{{ .File.UniqueID }}">
{{ partial "posts/toc" . }}
<div id="post-content">
diff --git a/layouts/_partials/template/post-page.html b/layouts/_partials/template/post-page.html
index d25b50fe..bf24252c 100644
--- a/layouts/_partials/template/post-page.html
+++ b/layouts/_partials/template/post-page.html
@@ -1,4 +1,4 @@
-<article>
+<article class="h-entry">
<!-- Post Header -->
<header
style="view-transition-name: post-{{ .File.UniqueID }}"
@@ -21,7 +21,7 @@
{{ partial "posts/banner" . }}
<!-- Title and Subtitle -->
<h1 class="text-size-3xl font-900 xerox">
- <span data-pagefind-meta="title">{{ .Title }}</span>
+ <span data-pagefind-meta="title" class="p-name">{{ .Title }}</span>
{{ with .Params.subtitle }}
<small class="block text-secondary font-italic text-size-xl">{{ . }}</small>
{{ end }}
@@ -38,4 +38,5 @@
{{ partial "content" . }}
{{ partial "posts/action-menu.html" . }}
{{ partial "components/back-to-top.html" . }}
+ {{ partial "components/microformats" . }}
</article>
diff --git a/layouts/baseof.html b/layouts/baseof.html
index 5a908711..24d4011e 100644
--- a/layouts/baseof.html
+++ b/layouts/baseof.html
@@ -3,7 +3,6 @@
{{ partial "head.html" . }}
<body>
{{ partial "components/svg-filters" . }}
- {{ partial "components/microformats" . }}
<main class="my-[var(--page-margin-y)] relative">
{{ block "main" . }}{{ end }}
{{ partial "components/shade-mask" . }}
diff --git a/layouts/fiction/page.html b/layouts/fiction/page.html
index 1b5b400d..22b04cc0 100644
--- a/layouts/fiction/page.html
+++ b/layouts/fiction/page.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article>
+ <article class="h-entry">
<header class="text-center">
{{ partial "components/logo" (dict
"link" "fictions/"
@@ -11,12 +11,13 @@
<h1
class="xerox text-4xl font-900"
data-pagefind-meta="title"
- ><span style="view-transition-name: post-{{ .File.UniqueID }}">{{ .Title }}</span></h1>
+ ><span class="p-name" style="view-transition-name: post-{{ .File.UniqueID }}">{{ .Title }}</span></h1>
<div class="text-secondary">{{ partial "components/date" . }}</div>
</header>
{{ partial "content" . }}
{{ partial "posts/action-menu.html" . }}
{{ partial "components/back-to-top.html" . }}
+ {{ partial "components/microformats" . }}
</article>
{{ end }}
diff --git a/layouts/library/page.html b/layouts/library/page.html
index 9da6e683..b6e13f8d 100644
--- a/layouts/library/page.html
+++ b/layouts/library/page.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article>
+ <article class="h-entry">
<header class="flex flex-col items-center gap-2">
<div class="relative border-3 border-solid border-white shadow-lg w-[10rem] md:w-[15rem]"
style="view-transition-name: book-{{ .File.UniqueID }}">
@@ -15,7 +15,7 @@
"class" "round-sticker absolute w-8 h-8 md:w-20 md:h-20 top-8 -right-8 md:-right-12"
"imageClass" "w-full") }}
</div>
- <h1 class="xerox" data-pagefind-meta="title">{{ .Title }}</h1>
+ <h1 class="xerox p-name" data-pagefind-meta="title">{{ .Title }}</h1>
{{- $rating := .Params.rating -}}
{{- $fullStars := math.Floor $rating -}}
<p class="m-0">
@@ -38,6 +38,7 @@
{{ partial "components/backlinks" (dict "filename" .File.BaseFileName "type" "library" "context" .) }}
{{ partial "posts/action-menu.html" . }}
{{ partial "components/back-to-top.html" . }}
+ {{ partial "components/microformats" . }}