This repository contains the source code and Markdown content for the Safespring website, which can be found at https://www.safespring.com/.
There are two options for previewing the site locally: using the Hugo binary or using Docker as a server.
- Download and install the Hugo binary from the official Hugo website.
- Clone the repository and run Hugo:
git clone git@github.com:safespring/web
cd web
hugo serve
- Open http://localhost:1313/ in your web browser to view the site.
- Make sure you have Docker installed.
- Clone the repository and run Docker:
git clone git@github.com:safespring/web
cd web
docker run --rm -it -v $(pwd):/src -p 1313:1313 klakegg/hugo server
- Open http://localhost:1313/ in your web browser to view the site.
- The current theme for the Safespring website is located in
themes/safespring
and is based on the Type theme. - More information about customizing and creating themes and templates can be found in the Hugo documentation.
Hugo has a feature that allows you to redirect old links to new ones. To do this, add the following code to the front matter of the Markdown file for the blog post:
aliases = [
"/old-link/",
"/new-link/"
]
This way, if the structure of the page changes, users will still be able to use their old links.