summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-30 20:14:11 +0800
committerEltrac <hi@guhub.cn>2025-05-30 20:14:11 +0800
commit5f5c14e32a0daee1e44c6b5cd1fccc1862bafd13 (patch)
tree5a05b4c88a5c7c19c332e4678b21979421188450 /layouts
parente523a1b359e572fa1bc663f65fdb88f0f07e2e70 (diff)
refactor: remove redundant code and merge files
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html7
-rw-r--r--layouts/posts/single.html5
2 files changed, 2 insertions, 10 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e7798602..7f33f13b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,15 +1,10 @@
{{ define "main" }}
{{ partial "header.html" . }}
- <article
- class="page {{ .Site.Language.LanguageName }}"
- id="article"
- >
- <!-- Content -->
+ <article class="page" id="article">
<div id="post-content" class="post-content markdown-body"
style="view-transition-name: post-content-{{ .File.UniqueID }}">
{{ .Content }}
</div>
-
</article>
{{ partial "footer.html" . }}
{{ end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 3fe80a84..0fe65678 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -1,9 +1,6 @@
{{ define "main" }}
{{ partial "components/post-page-header.html" . }}
- <article
- class="post {{ .Site.Language.LanguageName }}"
- id="article"
- >
+ <article class="post" id="article">
<!-- Post Header -->
<header
style="view-transition-name: post-{{ .File.UniqueID }}"