mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
No description
938428333e
Statically grab and include webmentions during Hugo builds, no JS involved. Hugo supports making web requests and parsing the resulting JSON, so there was no need to use an external program either. |
||
---|---|---|
archetypes | ||
assets | ||
content | ||
layouts | ||
static | ||
.browserslistrc | ||
.build.yml | ||
.gitignore | ||
.hintrc | ||
.lighthouserc.yml | ||
.rsyncignore | ||
.stylelintignore | ||
.stylelintrc.json | ||
budget.json | ||
config.toml | ||
LICENSE | ||
lychee.toml | ||
Makefile | ||
Makefile.online | ||
package.json | ||
README.md |
seirdy.one
Code for my personal website, seirdy.one. Built with Hugo.
Dependencies
To build:
- Hugo 0.75 or later
- Make
- Git (Hugo uses Git info for features like date last updated)
- Zopfli (optional; set
NO_STATIC=1
to disable) - Brotli (optional; set
NO_STATIC=1
to disable) - POSIX utils: grep, find, etc.
To deploy:
- ssh
- rsync
- zstd
To lint:
- stylelint
- csslint
- webhint CLI
- lychee
To test in CI, after deploying to the staging environment:
- webhint CLI
- lighthouse-ci
CI also runs static-webmention to gather a list of WebMentions for me to send and review manually.
See the Makefile
for details. The CI saves lighthouse reports as a build artifact.