Theme,CI: Update hugo and fix for hugo v0.146
All checks were successful
/ build (push) Successful in 20s
All checks were successful
/ build (push) Successful in 20s
hugo 0.146.0 refactored the template system and changed where some internal templates are located.
This commit is contained in:
parent
102b3cb4db
commit
3ea764708a
3 changed files with 6 additions and 4 deletions
|
@ -13,7 +13,7 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: hugomods/hugo:exts-0.140.2
|
||||
image: hugomods/hugo:exts-0.148.1
|
||||
steps:
|
||||
- name: Pipeline info
|
||||
run: |
|
||||
|
|
|
@ -11,6 +11,8 @@ cleanDestinationDir = true
|
|||
enableGitInfo = true
|
||||
# paginate = 10
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
[outputs]
|
||||
home = ['html']
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{- if in $validFormats $format }}
|
||||
{{- if gt $page.Paginator.TotalPages 1 }}
|
||||
<ul class="pagination pagination-{{ $format }}">
|
||||
{{- partial (printf "partials/inline/pagination/%s" $format) $page }}
|
||||
{{- partial (printf "inline/pagination/%s.html" $format) $page }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
{{/* Format: default
|
||||
{{/* --------------------------------------------------------------------- */}}
|
||||
{{- define "partials/inline/pagination/default" }}
|
||||
{{- define "_partials/inline/pagination/default.html" }}
|
||||
{{- with .Paginator }}
|
||||
{{- $currentPageNumber := .PageNumber }}
|
||||
|
||||
|
@ -100,7 +100,7 @@
|
|||
|
||||
{{/* Format: terse
|
||||
{{/* --------------------------------------------------------------------- */}}
|
||||
{{- define "partials/inline/pagination/terse" }}
|
||||
{{- define "_partials/inline/pagination/terse.html" }}
|
||||
{{- with .Paginator }}
|
||||
{{- $currentPageNumber := .PageNumber }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue