JasonYao / JasonYao.github.io

My personal site at jasonyao.com using Hugo
https://www.jasonyao.com
GNU General Public License v3.0
1 stars 0 forks source link

Add in linters #3

Closed JasonYao closed 3 years ago

JasonYao commented 3 years ago

TODO

JasonYao commented 3 years ago

html and json validation can be copy pasta from https://github.com/JasonYao/deprecated-old-2017-site/blob/source/bin/test

https://pkg.go.dev/github.com/Ainiroad/go-toml/cmd/tomll looks like a good linter that we can pull in for the toml config

JasonYao commented 3 years ago

It looks like the toml linter is actually a part of the larger go-toml, and we can install via go install github.com/pelletier/go-toml/cmd/tomll

JasonYao commented 3 years ago

Added in tomll code commented out, since it strips comments. not too big if the toml file doesn't have linting, but everything else works as of https://github.com/JasonYao/JasonYao.github.io/commit/8f6cc0f96cbf81aa95e16c8543f6a2dc0ba53e29