diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-01 10:08:22 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-01 10:08:22 +0800 |
| commit | ce149d8063e8e082c820e54602f7ecdda9f88184 (patch) | |
| tree | 47bc2a2a9963531e44989853ed8cda7aef82a2bc /layouts/_default | |
| parent | d77636bc710c3b1f77096205642eab5ffa801111 (diff) | |
feat: new home page
- new post list structure and style
- move categories page link to postnav, a new navigation component used between homepage and categories page
- search anywhere instruction
- move posts archive page link to top navigation
- some more skeletons!
Former-commit-id: 9b8ac5fe0115f4b7609ca6b990a35077c8221c45
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/section.html | 4 | ||||
| -rw-r--r-- | layouts/_default/single.html | 3 | ||||
| -rw-r--r-- | layouts/_default/taxonomy.html | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 55de607c..d18246ad 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,10 +1,8 @@ {{ define "main" }} <article class="posts"> - {{ partial "components/breadcrumbs.html" . }} + {{ partial "header.html" . }} <div id="posts-archive" class="posts-list"> - {{ partial "components/heatmap.html" . }} - <!-- Post Archive List --> {{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}} <section class="posts-year-archive"> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5b64f3bc..781270f9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -50,7 +50,8 @@ </header> <!-- Post Content --> - <div id="post-content" class="post-content markdown-body"> + <div id="post-content" class="post-content markdown-body" + style="view-transition-name: post-content-{{ .File.UniqueID }}"> {{ if .Params.toc }} <div id="toc-container"><div id="toc"></div></div> {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 570d920d..f0dd979a 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,7 +1,7 @@ {{ define "main" }} <article class="taxonomy"> {{ partial "header.html" . }} - + {{ partial "components/postnav.html" . }} <!-- Display Tags --> <section class="taxonomy taxonomy-tags"> {{ range sort .Site.Taxonomies.tags "Count" "desc" }} @@ -12,10 +12,6 @@ {{ end }} </section> - <hr /> - {{ partial "components/welcome" . }} - <hr /> - <!-- Display Categories --> <section class="taxonomy taxonomy-categories row"> {{ range .Site.Taxonomies.categories.Alphabetical }} |
