From: Vincent Bernat Date: Sat, 15 Apr 2023 09:48:26 +0000 (+0200) Subject: build: use less-compiler and optipng from nixpkgs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1489935dbf1dd57e76a2fe6eeec0dd391039992;p=thirdparty%2Flldpd.git build: use less-compiler and optipng from nixpkgs --- 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: