diff --git a/nix/site.nix b/nix/site.nix
index b9778ec..c5950b1 100644
--- a/nix/site.nix
+++ b/nix/site.nix
@@ -1,10 +1,5 @@
{ pkgs }:
-let
- stylesheetHash = builtins.substring 0 12 (builtins.hashFile "sha256" ../site/styles.css);
- stylesheetFileName = "styles-${stylesheetHash}.css";
-in
-
pkgs.stdenvNoCC.mkDerivation {
pname = "tide-landing-page";
version = "1.0.0";
@@ -17,11 +12,6 @@ pkgs.stdenvNoCC.mkDerivation {
mkdir -p "$out"
cp -R . "$out"
- mv "$out/styles.css" "$out/${stylesheetFileName}"
- substituteInPlace "$out/index.html" \
- --replace-fail \
- 'href="/styles.css"' \
- 'href="/${stylesheetFileName}"'
runHook postInstall
'';
diff --git a/nix/tests/module.nix b/nix/tests/module.nix
index 2ef0f3a..b3de3b3 100644
--- a/nix/tests/module.nix
+++ b/nix/tests/module.nix
@@ -25,8 +25,6 @@ let
};
evaluatedConfig = evaluatedSystem.config;
landingPage = self.packages.${system}.landing-page;
- stylesheetHash = builtins.substring 0 12 (builtins.hashFile "sha256" ../../site/styles.css);
- stylesheetFileName = "styles-${stylesheetHash}.css";
landingVirtualHost = evaluatedConfig.services.nginx.virtualHosts."torahimderecheretz.com";
discourseConfig = evaluatedConfig.services.discourse;
backupConfig = evaluatedConfig.services.borgbackup.jobs.discourse;
@@ -64,41 +62,10 @@ assert !(evaluatedConfig.services.nginx.virtualHosts ? "tide.yisroelbaum.com");
assert !(evaluatedConfig.services.nginx.virtualHosts ? "apitide.yisroelbaum.com");
pkgs.runCommand "tide-module-test" { } ''
test -f ${landingPage}/index.html
- test -f ${landingPage}/${stylesheetFileName}
- test ! -e ${landingPage}/styles.css
+ test -f ${landingPage}/styles.css
test -f ${landingPage}/robots.txt
- test -f ${landingPage}/assets/rav-hirsch-later-life.jpg
- test -f ${landingPage}/assets/rav-hirsch-later-life.webp
- test -f ${landingPage}/assets/social-preview-hirsch-later-life.png
- test ! -e ${landingPage}/assets/rav-hirsch-1847.jpg
- test ! -e ${landingPage}/assets/rav-hirsch-1847.webp
- ${pkgs.diffutils}/bin/cmp \
- ${../../site/styles.css} \
- ${landingPage}/${stylesheetFileName}
- ${pkgs.gnugrep}/bin/grep -F \
- 'aspect-ratio: 5 / 6;' \
- ${landingPage}/${stylesheetFileName}
- ${pkgs.gnugrep}/bin/grep -F \
- 'href="/${stylesheetFileName}"' \
- ${landingPage}/index.html
- ${pkgs.gnugrep}/bin/grep -F \
- 'href="/assets/rav-hirsch-later-life.webp"' \
- ${landingPage}/index.html
- ${pkgs.gnugrep}/bin/grep -F \
- 'src="/assets/rav-hirsch-later-life.jpg"' \
- ${landingPage}/index.html
- ${pkgs.gnugrep}/bin/grep -F \
- 'height="600"' \
- ${landingPage}/index.html
- ${pkgs.gnugrep}/bin/grep -F \
- 'assets/social-preview-hirsch-later-life.png' \
- ${landingPage}/index.html
- if ${pkgs.gnugrep}/bin/grep -F \
- 'href="/styles.css"' \
- ${landingPage}/index.html; then
- echo "unexpected unversioned stylesheet reference" >&2
- exit 1
- fi
+ test -f ${landingPage}/assets/rav-hirsch-1847.jpg
+ test -f ${landingPage}/assets/rav-hirsch-1847.webp
${pkgs.gnugrep}/bin/grep -F \
"A Torah vision for the whole of life." \
${landingPage}/index.html
diff --git a/site/assets/rav-hirsch-1847.jpg b/site/assets/rav-hirsch-1847.jpg
new file mode 100644
index 0000000..0fd136a
Binary files /dev/null and b/site/assets/rav-hirsch-1847.jpg differ
diff --git a/site/assets/rav-hirsch-1847.webp b/site/assets/rav-hirsch-1847.webp
new file mode 100644
index 0000000..4b0f701
Binary files /dev/null and b/site/assets/rav-hirsch-1847.webp differ
diff --git a/site/assets/rav-hirsch-later-life.jpg b/site/assets/rav-hirsch-later-life.jpg
deleted file mode 100644
index d2f8391..0000000
Binary files a/site/assets/rav-hirsch-later-life.jpg and /dev/null differ
diff --git a/site/assets/rav-hirsch-later-life.webp b/site/assets/rav-hirsch-later-life.webp
deleted file mode 100644
index 2b194f6..0000000
Binary files a/site/assets/rav-hirsch-later-life.webp and /dev/null differ
diff --git a/site/assets/social-preview-hirsch-later-life.png b/site/assets/social-preview-hirsch-later-life.png
deleted file mode 100644
index 79630ca..0000000
Binary files a/site/assets/social-preview-hirsch-later-life.png and /dev/null differ
diff --git a/site/assets/social-preview.png b/site/assets/social-preview.png
new file mode 100644
index 0000000..8765eb2
Binary files /dev/null and b/site/assets/social-preview.png differ
diff --git a/site/assets/social-preview.svg b/site/assets/social-preview.svg
index dc1c424..862b588 100644
--- a/site/assets/social-preview.svg
+++ b/site/assets/social-preview.svg
@@ -19,12 +19,12 @@