Merge pull request 'resources.ToCSS is deprecaed. Use css.Sass' (#135) from fix-ToCSS into main

Reviewed-on: https://git.data.coop/data.coop/website/pulls/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: In `docker-compose.yml`, we have specified a `serve` target which you can run locally like this:
```bash ```bash
docker-compose up serve docker compose run --rm -u `id -u` --service-ports serve
``` ```
Running without Docker Running without Docker

View file

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

View file

@ -20,7 +20,7 @@
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.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 }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
<title>{{ .Title }} | {{ .Site.Title }}</title> <title>{{ .Title }} | {{ .Site.Title }}</title>