From 869cbe0f566814caa8a791d956ea794004f2eb7d Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Wed, 10 Jan 2024 12:24:52 -0700 Subject: [PATCH] Specify environment on build. --- _includes/head.html | 7 +++++-- flake.nix | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 55a0c3a..d13aace 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -21,8 +21,11 @@ } }); - - + {% if jekyll.environment == "production" %} + + + {% endif %} {% seo %} diff --git a/flake.nix b/flake.nix index ce3a8c7..73f85bb 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,7 @@ buildInputs = [ gems gems.wrappedRuby ]; src = ./.; version = "0.1.0"; - installPhase = "jekyll b -d $out"; + installPhase = "JEKYLL_ENV=production jekyll b -d $out"; }; default = self.packages.${system}.app;