Adjust templates layout for hugo 0.146, potentially breaking change

This commit is contained in:
Alex Shpak 2025-05-31 01:38:33 +02:00
parent 24d3465980
commit f2c703e155
45 changed files with 5 additions and 11 deletions

View File

@ -9,7 +9,7 @@ jobs:
matrix:
hugo-version:
- 'latest'
- '0.134.2'
- '0.146.7'
steps:
- uses: actions/checkout@v4
with:

View File

@ -1,6 +1,6 @@
# Hugo Book Theme
[![Hugo](https://img.shields.io/badge/hugo-0.134-blue.svg)](https://gohugo.io)
[![Hugo](https://img.shields.io/badge/hugo-0.146-blue.svg)](https://gohugo.io)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
![Build with Hugo](https://github.com/alex-shpak/hugo-book/workflows/Build%20with%20Hugo/badge.svg)
@ -33,7 +33,7 @@
## Requirements
- Hugo 0.134 or higher
- Hugo 0.146 or higher
- Hugo extended version, [Installation Instructions](https://gohugo.io/installation/)
## Installation

View File

@ -177,7 +177,7 @@ body[dir="rtl"] .book-menu {
}
.book-post {
margin-bottom: $padding-16 * 2;
margin-bottom: $padding-16 * 4;
.book-post-date img {
height: 1em;

View File

@ -3,7 +3,7 @@
{{ range $term, $_ := .Site.Taxonomies }}
{{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
<li class="book-section-flat">
<strong>{{ .Title | title }}</strong>
<span>{{ .Title | title }}</span>
<ul>
{{ range .Pages }}
<li class="flex justify-between">

View File

@ -7,9 +7,6 @@
{{ partial "docs/post-meta" . }}
<div class="book-post-content">
{{- .Summary -}}
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">...</a>
{{ end }}
</div>
</article>
{{ end }}

View File

@ -7,9 +7,6 @@
{{ partial "docs/post-meta" . }}
<p>
{{- .Summary -}}
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">...</a>
{{ end }}
</p>
</article>
{{ end }}