mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-10 02:34:08 +00:00
Adjust templates layout for hugo 0.146, potentially breaking change
This commit is contained in:
parent
24d3465980
commit
f2c703e155
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
matrix:
|
||||
hugo-version:
|
||||
- 'latest'
|
||||
- '0.134.2'
|
||||
- '0.146.7'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Hugo Book Theme
|
||||
|
||||
[](https://gohugo.io)
|
||||
[](https://gohugo.io)
|
||||
[](LICENSE)
|
||||

|
||||
|
||||
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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">
|
@ -7,9 +7,6 @@
|
||||
{{ partial "docs/post-meta" . }}
|
||||
<div class="book-post-content">
|
||||
{{- .Summary -}}
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .RelPermalink }}">...</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -7,9 +7,6 @@
|
||||
{{ partial "docs/post-meta" . }}
|
||||
<p>
|
||||
{{- .Summary -}}
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .RelPermalink }}">...</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
</article>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user