Repository for the PCM Hammer website
You'll need .Net Framework 10
Visual Studio Code works fine. Proper Visual Studio doesn't add much, since 99% of the work here just in markdown files. I haven't needed to debug Statiq at all.
This uses Statiq to convert markdown and other files into an HTML website.
The development workflow:
- Edit the files in the
inputdirectory tree - Run
dotnet run -- previewto process the files - Generated files are written in the
outputdirectory tree, and a small HTTP server starts listening. - Point your browser at http://localhost:5080/ to view the site.
Changes to files in the input tree are processed dynamically and will usually be visible in the browser within a few seconds.
We use the CleanBlog theme, which is fetched as a git submodule in the theme directory. In order to avoid having a separate repo for theme modifications, modified theme files are stored in the theme-overlay directory tree, and they are copied into theme as the first step of the build process. (This might create headaches if the theme repo changes in the future, but it hasn't been updated in 3 years.)
Note that changes to the overlay files are not processed in real time - you will need to exit and re-run the project to re-apply changes.
Also note that there is only one change in the overlay file, which changes the site title from "My Blog" to "PCM Hammer".
dotnet run -- preview- this will build the site and start an HTTP server on port 5080. Note that this command will never exis, because it continues to serve the site.dotnet runthis will build the site and then exit.
Every merge to the Statiq branch triggers this GitHub workflow, which builds the HTML files uploads them to GitHub Pages automagically:
https://github.com/PcmHammer/PcmHammer.github.io/blob/Statiq/.github/workflows/publish-statiq.yml
- Icons are from the this collection, which uses the Apache 2.0 license (very permissive)