diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 19:26:28 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 19:26:28 +0800 |
| commit | 29af8b6c2bd89c1966512b4305af345b8ee1ef82 (patch) | |
| tree | 07a4801791db7d6a4670d53411f0689ec0090bfe /layouts/posts | |
| parent | 44c7def3f6958550ccf965971f1819c1d6c514f1 (diff) | |
refactor: clearer division of each partial and better folder structure
Diffstat (limited to 'layouts/posts')
| -rw-r--r-- | layouts/posts/single.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 94f9be6f..bdb0f617 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -6,7 +6,7 @@ style="view-transition-name: post-{{ .File.UniqueID }}" class="post-header" > - {{ partial "components/banner.html" . }} + {{ partial "posts/banner" . }} <!-- Title and Subtitle --> <h1 class="post-title"> <span data-pagefind-meta="title">{{ .Title }}</span> @@ -27,16 +27,16 @@ <div class="post-content markdown-body" style="view-transition-name: post-content-{{ .File.UniqueID }}"> <!-- TOC --> - {{ partial "components/toc" . }} + {{ partial "posts/toc" . }} <!-- Content --> <div id="post-content"> {{ .Content }} </div> <!-- Endnotes --> - {{ partial "components/endnotes" . }} + {{ partial "posts/endnotes" . }} </div> - {{ partial "components/post-tabs.html" . }} - {{ partial "components/now-read-this.html" . }} + {{ partial "posts/action-menu.html" . }} + {{ partial "posts/now-read-this.html" . }} </article> {{ end }} |
