Specify environment on build.

main
Joshua Potter 2024-01-10 12:24:52 -07:00
parent e409828011
commit 869cbe0f56
2 changed files with 6 additions and 3 deletions

View File

@ -21,8 +21,11 @@
} }
}); });
</script> </script>
{% if jekyll.environment == "production" %}
<!-- Plausible Analytics --> <!-- Plausible Analytics -->
<script defer data-domain="jrpotter.com" src="https://analytics.jrpotter.com/js/script.js"></script> <script defer data-domain="jrpotter.com" src="https://analytics.jrpotter.com/js/script.js">
</script>
{% endif %}
<!-- Use Jekyll SEO plugin --> <!-- Use Jekyll SEO plugin -->
{% seo %} {% seo %}
</head> </head>

View File

@ -32,7 +32,7 @@
buildInputs = [ gems gems.wrappedRuby ]; buildInputs = [ gems gems.wrappedRuby ];
src = ./.; src = ./.;
version = "0.1.0"; version = "0.1.0";
installPhase = "jekyll b -d $out"; installPhase = "JEKYLL_ENV=production jekyll b -d $out";
}; };
default = self.packages.${system}.app; default = self.packages.${system}.app;