The website for the Co-designing Inclusive Cities project. This repository is no longer in active development but has not been archived to allow for changes needed to update/maintain deployment.
NOTE: Do not merge this work to master until associated changes have been made on the CI server to switch the deployment process over to use Hugo rather than the existing direct file upload. Please co-ordinate with @gtirloni and @waharnum.
This pull request changes the Inclusive Cities website to use the Hugo static site generator.
Notes
I've tried to make the Hugo generated version of the site as close as possible to the existing files, to make it possible to diff the files before and after to check the conversion
I've put together some scripts to compare the Hugo generated version to the existing files (see below for details)
I'm using the Hugo relURL template function for URLs in the header and UIO initialization code; this results in those URLs being different from the existing files (I was unable to find a way to cause Hugo to keep those URLs the same as the current ones)
The SVG images for the co-design-draft-proposal post used to live beside the HTML file but I've moved those now to static/images
By default Hugo injects <meta name="generator" content="Hugo 0.47.1" /> into the header of the homepage; it's possible to turn this off but I think it's fine to include this
Diffing Hugo generated files against existing
I've written some scripts to automate checking the Hugo version of the site:
NOTE: Do not merge this work to master until associated changes have been made on the CI server to switch the deployment process over to use Hugo rather than the existing direct file upload. Please co-ordinate with @gtirloni and @waharnum.
This pull request changes the Inclusive Cities website to use the Hugo static site generator.
Notes
relURL
template function for URLs in the header and UIO initialization code; this results in those URLs being different from the existing files (I was unable to find a way to cause Hugo to keep those URLs the same as the current ones)co-design-draft-proposal
post used to live beside the HTML file but I've moved those now tostatic/images
<meta name="generator" content="Hugo 0.47.1" />
into the header of the homepage; it's possible to turn this off but I think it's fine to include thisDiffing Hugo generated files against existing
check-website-cities-hugo.sh
in the first gist above is the main script to run and calls the scripts in thediff-website
repo"."
is the directory from whichcheck-website-cities-hugo.sh
is being run):./diff-website
-- a clone of thediff-website
repo above./website-cities
-- a clone of mywebsite-cities
on theCITY-7
branch, withhugo
having been run./website-cities-master
-- a clone ofwebsite-cities
master (to compare against)