Skip to content

Commit

Permalink
build: Update to hugo 0.134.0
Browse files Browse the repository at this point in the history
- Add a trailing slash to baseURL as expected by the new hugo version.
- Use the newer css.Sass instead of deprecated resources.ToCSS
- Use pagination.pagerSize instead of deprecated paginate
  • Loading branch information
jholdstock committed Sep 5, 2024
1 parent 290f403 commit f73fdfd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# builder image
FROM alpine:latest

ENV HUGO_VERSION 0.110.0
ENV HUGO_VERSION 0.134.0

LABEL description="gohugo build"
LABEL version="1.0"
Expand Down
2 changes: 1 addition & 1 deletion bin/watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ hugo server \
--buildFuture \
--buildDrafts \
--disableFastRender \
--baseURL http://localhost:1313
--baseURL http://localhost:1313/
5 changes: 3 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ languageCode = "en-us"
title = "Decred Blog"
theme = "decred-blog"

paginate = 5

copyright = "[DECRED BLOG](https://blog.decred.org/) ALL RIGHTS RESERVED."

# disablePathToLower is necessary to maintain backwards compatability with old blog links
disablePathToLower = true

[pagination]
pagerSize = 5

[taxonomies]
author = "authors"
tag = "tags"
Expand Down
2 changes: 1 addition & 1 deletion themes/decred-blog/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>

{{ "<!-- combined, minified CSS -->" | safeHTML }}
{{ $style := resources.Get "sass/main.scss" | toCSS }}
{{ $style := resources.Get "sass/main.scss" | css.Sass }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">

{{ $fonts := resources.Get "css/fonts.css" }}
Expand Down

0 comments on commit f73fdfd

Please sign in to comment.