This is a small business template built with Hugo based on Let's Encrypt using content exported from Squarespace.
Download https://github.com/getcouragenow/web/ or clone using $ git clone https://github.com/getcouragenow/web.git
- Run
$ git fetch
- Run
$ git checkout dev
to be on the correct branch
Makefile has all the commands necessary for building, starting server, and deploying to Firebase and must be executed from the checked out root directory of GetCourageNow
-
Use bootstrap/os to quick install Golang 1.13
-
Run
$ make os-dep
- Run
$ make git-clean
to clean Let's Encrypt codebase directory when necessary - Run
$ make git-upstream
to pull Let's Encrypt repo if codebase directory is cleaned - Or run
$ make git-update
to update Let's Encrypt's codebase directory
- Run
$ make gsheet
This will create a document called outputs and contains all . - To add a new sheet see
/config
folder for more infos.
-
Run
$ make modify
to invoke Import.go script. By default it will replace, overwrite, or append to Let's Encrypt codebase. -
Run
$ make hugo-build
to build after importing GetCourageNow content into Let's Encrypt codebase -
Run
$ make hugo-run
to start the server. -
Run
$ make hugo-open
to launch browser to see the build locally.
The file fixe_text.json
is used to replace strings on some files, so how it's work?
file_path
: adding file path where there is an error an you want to fixe it.errors
: it's an array contains objects where you need to set "old" and "new" string that you want to replace in thefile_path
.- example:
{
"file_path": "resources/website/layouts/partials/head.html",
"errors": [
{ "old": "@letsencrypt", "new": "@winwisely" }
]
}
- Run
make modify-text
to fixe and update all strings.
The file clean_translation_tags.json
is used by gsheet import to clean tags used to translate, or fixe translation errors for all the files.
{
"error": "NOTRANSLATE_",
"fixe": ""
}
- Run
make gsheet
to fixe and updateoutputs
folder.
- Run
$ make build
to rebuild Hugo - If first time deploying:
- Run
$ make deploy-fb-init
- Run
- Run
$ make deploy-fb
to deploy build to Dev server located at https://getcourage-letsencrypt-web.firebaseapp.com/