- HTML 48.8%
- Shell 24.1%
- CSS 18.6%
- Makefile 8.2%
- Standard ML 0.3%
jacksonchen666.com
my website
running a local version
clone the repo first
dependency
this site uses hugo 0.147.2 (non-extended verison).
the minimum version of hugo for this site is 0.120.0 (uses hugo.IsDevelopment).
the version choice is based on whatever in the alpine linux
repos for the latest version of alpine. (note: link links to a
specific version of alpine linux, please adjust distro version as necessary,
using alpine/latest from builds.sr.ht images as a reference
for the alpine version)
other dependencies:
- some GNU tools (make, gzip, tar)
makefor building and deploying the site (theMakefilemakes use of features probably only in GNU make)gzipfor page compression (in deployment)tarfor turning a directory into a single file (used in deployment, may make use ofgzip)
hutfor updating pages.sr.ht- brotli for page compression (in deployment)
serve the site
run make live and look at localhost:1313
expected production site generation
- the correct environment is used for generating alternative sites (tor
onions, i2p, yggdrasil, etc.). set it by passing the
--environmentargument. for the normal website, use the environment valueproduction(default with just thehugocommand). - the site is pretty much made with makefiles where it runs the commands and stuff. makefiles are used in CI as well.
- gzip/brotli compression is done before files are uploaded to the server at jacksonchen666.com, not done on that server.
slightly notable notes on development vs. production
in the hugo config files, there is a development config and a production config.
there is an extremely important distinction to make: script-src 'none'; in
production, script-src 'self'; in development.
whether it is "production" or "development" depends on if you run hugo or
hugo server:
hugogets you a production environmenthugo servergets you a development environment
you can override the environment to production with --environment production so you can test if your changes works.
it is highly recommended to test using the production environment mode,
otherwise your changes might not work correctly. do so with hugo server --environment production.
licensing
this project is compliant with the REUSE
specification. please refer to the LICENSE
file for more information.
contributing
contributions are not accepted. please refer to CONTRIBUTING.md for more info.