From f1489935dbf1dd57e76a2fe6eeec0dd391039992 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 15 Apr 2023 11:48:26 +0200 Subject: [PATCH] build: use less-compiler and optipng from nixpkgs --- content/media/css/common.less | 2 +- flake.nix | 2 ++ site.yaml | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/content/media/css/common.less b/content/media/css/common.less index 1fd89dd7..d42e7fb2 100644 --- a/content/media/css/common.less +++ b/content/media/css/common.less @@ -28,5 +28,5 @@ .font-size (@factor: 1) { font-size: @factor * 1em; - line-height: round(ceil(@factor/@line-height)*@line-height/@factor, 3); + line-height: round((ceil((@factor/@line-height))*@line-height/@factor), 3); } diff --git a/flake.nix b/flake.nix index b554177c..441c23ad 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,8 @@ pkgs.git-annex pkgs.openssl pkgs.python3Packages.invoke + pkgs.lessc + pkgs.optipng ]; shellHook = ""; }); diff --git a/site.yaml b/site.yaml index 43738320..293d2292 100644 --- a/site.yaml +++ b/site.yaml @@ -21,11 +21,11 @@ meta: extends: base.j2 default_block: article less: - app: /usr/bin/lessc + app: lessc args: compress: "" optipng: - app: /usr/bin/optipng + app: optipng args: quiet: "" markdown: -- 2.39.5