Merge pull request 'resources.ToCSS is deprecaed. Use css.Sass' (#135) from fix-ToCSS into main
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #135
Reviewed-by: benjaoming <benjaoming@data.coop>
This commit is contained in:
reynir 2025-01-10 13:02:06 +00:00
commit cf3eb58afe
3 changed files with 3 additions and 5 deletions

View file

@ -11,7 +11,7 @@ Running with Docker
In `docker-compose.yml`, we have specified a `serve` target which you can run locally like this:
```bash
docker-compose up serve
docker compose run --rm -u `id -u` --service-ports serve
```
Running without Docker

View file

@ -1,7 +1,5 @@
version: "3"
services:
server:
serve:
image: floryn90/hugo:ext-alpine
command: server
volumes:

View file

@ -20,7 +20,7 @@
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
{{ $style := resources.Get "static/css/style.scss" | css.Sass | resources.Minify | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
<title>{{ .Title }} | {{ .Site.Title }}</title>