Skip to content

safespring/web

Repository files navigation

Safespring Website

This repository contains the source code and Markdown content for the Safespring website, which can be found at https://www.safespring.com/.

Previewing the site locally

There are two options for previewing the site locally: using the Hugo binary or using Docker as a server.

Using the Hugo binary

  1. Download and install the Hugo binary from the official Hugo website.
  2. Clone the repository and run Hugo:
git clone git@github.com:safespring/web
cd web
hugo serve
  1. Open http://localhost:1313/ in your web browser to view the site.

Using Docker as a server

  1. Make sure you have Docker installed.
  2. 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
  1. Open http://localhost:1313/ in your web browser to view the site.

Notes for theme development

  • 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.

Redirecting old links to new ones

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.