From ce0723cd05a626b5bacd8a52f9c5e3542cd3596a Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 3 Nov 2020 17:23:50 -0600 Subject: [PATCH] Fix broken links --- layouts/_default/baseof.html | 6 +----- scripts/check-broken-links.sh | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100755 scripts/check-broken-links.sh diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 91a4fe0..b56562e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -30,13 +30,9 @@
-

- tags · - all pages -

written by michael zhang. - source + source

diff --git a/scripts/check-broken-links.sh b/scripts/check-broken-links.sh new file mode 100755 index 0000000..46be578 --- /dev/null +++ b/scripts/check-broken-links.sh @@ -0,0 +1,5 @@ +#!/bin/bash +DEFAULT="http://localhost:1313" +TARGET=${1:-$DEFAULT} +wget --spider -r -nd -nv -H -l 1 $TARGET +