A Free and Open Source community.
Published at: https://thescienceofcode.com/
The site now lives under src/ and runs on hugoplate, with local overrides under src/layouts/ to keep the current content/post structure and existing article front matter.
-
Install
go. -
Install the theme dependencies:
cd src/themes/hugoplate npm install -
Download Hugo
0.158.0extended into:.tools/hugo-0.158.0/hugoThe helper scripts will also use
hugofrom yourPATHif the local binary is not present.
Use the helper script from the repo root:
./run/dev.shThat starts Hugo in draft mode (server -D) with the required PATH and HUGO_CACHEDIR.
If src/themes/hugoplate/assets/css/generated-theme.css is missing, the script generates it automatically before starting.
The helper scripts also recreate src/node_modules -> src/themes/hugoplate/node_modules when needed so Tailwind resolves correctly without leaving a root-level symlink.
If you want to pass custom Hugo arguments, they are forwarded directly:
./run/dev.sh --navigateToChanged
./run/dev.sh server --disableFastRenderIf you need to force regeneration of the generated theme tokens:
./run/dev.sh --force-theme-cssOpen: http://localhost:1313/
./run/build.shA Free and Open Source community.
Published at: https://thescienceofcode.com/
-
Pre-requisites:
- Extract Hugo Binaries into the project's root folder.
- Install NodeJS
- Recommended Github Desktop:
-
Clone the repo. Note: the theme is contained on a Git Submodule. If you're using Github desktop just clone this repo and it will download the submodule automatically.
If you're going to modify the theme, you can add the submodule as a repo to Github Desktop (Add existing repository > location ./theme/tranquilpeak) and commit changes directly into the theme repository.
-
Download the repo and install dependencies for the theme:
cd src/themes/tranquilpeak npm install -g grunt-cli npm install -
Run theme (if you plan to actively edit it):
cd src/themes/tranquilpeak npm startOtherwise, just build it!
cd src/themes/tranquilpeak npm run build -
Run the site (using another terminal):
hugo serve -DIf you are using Powershell:
.\hugo serve -D
The Science of Code is a Free and Open Source initiative by Equilaterus.