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:
|
matrix:
|
||||||
hugo-version:
|
hugo-version:
|
||||||
- 'latest'
|
- 'latest'
|
||||||
- '0.134.2'
|
- '0.146.7'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Hugo Book Theme
|
# Hugo Book Theme
|
||||||
|
|
||||||
[](https://gohugo.io)
|
[](https://gohugo.io)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||

|

|
||||||
|
|
||||||
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Hugo 0.134 or higher
|
- Hugo 0.146 or higher
|
||||||
- Hugo extended version, [Installation Instructions](https://gohugo.io/installation/)
|
- Hugo extended version, [Installation Instructions](https://gohugo.io/installation/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -177,7 +177,7 @@ body[dir="rtl"] .book-menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.book-post {
|
.book-post {
|
||||||
margin-bottom: $padding-16 * 2;
|
margin-bottom: $padding-16 * 4;
|
||||||
|
|
||||||
.book-post-date img {
|
.book-post-date img {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{ range $term, $_ := .Site.Taxonomies }}
|
{{ range $term, $_ := .Site.Taxonomies }}
|
||||||
{{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
|
{{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
|
||||||
<li class="book-section-flat">
|
<li class="book-section-flat">
|
||||||
<strong>{{ .Title | title }}</strong>
|
<span>{{ .Title | title }}</span>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li class="flex justify-between">
|
<li class="flex justify-between">
|
@ -7,9 +7,6 @@
|
|||||||
{{ partial "docs/post-meta" . }}
|
{{ partial "docs/post-meta" . }}
|
||||||
<div class="book-post-content">
|
<div class="book-post-content">
|
||||||
{{- .Summary -}}
|
{{- .Summary -}}
|
||||||
{{ if .Truncated }}
|
|
||||||
<a href="{{ .RelPermalink }}">...</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
{{ partial "docs/post-meta" . }}
|
{{ partial "docs/post-meta" . }}
|
||||||
<p>
|
<p>
|
||||||
{{- .Summary -}}
|
{{- .Summary -}}
|
||||||
{{ if .Truncated }}
|
|
||||||
<a href="{{ .RelPermalink }}">...</a>
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user