From 9ebedc0d4e6a5e40c21109cfc1254105ee1e6ebb Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 16 Mar 2021 14:44:56 +0000 Subject: Add README and deploy script --- README | 20 ++++++++++++++++++++ deploy.sh | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 README create mode 100755 deploy.sh diff --git a/README b/README new file mode 100644 index 0000000..b514922 --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +# Rescribe blog + +This is the source for the Rescribe blog. It is built with Hugo, +so all page content is in content/, and as a convention any image +source files are stored in images/. + +## Submodules + +The theme for the website is stored as a git submodule. On checking +out this repository, run these to fetch it: + +git submodule init +git submodule update + +This is done so that we can keep our branch of the theme easily up +to date with upstream. + +## Deploying + +deploy.sh builds and deploys the website. diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..bef36e4 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,6 @@ +#!/bin/sh +d=`dirname "$0"` + +cd "$d" || exit 1 +hugo || exit 1 +echo rsync -avz public/* nwhite_rescribe@ssh.phx.nearlyfreespeech.net:blog.rescribe.xyz/ -- cgit v1.2.1-24-ge1ad