From 08561b7370307a00818fd2f786273e09ad9e1601 Mon Sep 17 00:00:00 2001
From: rylim <36293596+rylim@users.noreply.github.com>
Date: Mon, 25 Oct 2021 20:52:46 -0700
Subject: [PATCH 1/2] Update build-site.js
---
bin/build-site.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bin/build-site.js b/bin/build-site.js
index e3596305..b01e0d35 100755
--- a/bin/build-site.js
+++ b/bin/build-site.js
@@ -291,6 +291,11 @@ async function buildSite() {
writePage( '404.html', notFoundTemplate( {
notFoundStyles
} ) );
+
+ // Add empty robots.txt
+ console.log();
+ console.log( 'Writing empty robots.txt' );
+ writePage( 'robots.txt', '' );
console.log();
console.log( 'Site files are ready in "site/build/"' );
From 537b7fa86bc44cd9aea2d4b55b65fd2a3239a228 Mon Sep 17 00:00:00 2001
From: rylim <36293596+rylim@users.noreply.github.com>
Date: Mon, 25 Oct 2021 20:53:50 -0700
Subject: [PATCH 2/2] Update 404.html
---
site/templates/404.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/site/templates/404.html b/site/templates/404.html
index af8a1381..fc0b054c 100644
--- a/site/templates/404.html
+++ b/site/templates/404.html
@@ -14,8 +14,8 @@
{%- for stylesheet in notFoundStyles %}
-
- {%- endfor %}
+
+ {%- endfor %}