Claudio Yanes
2022-03-04 1313bd9779c638f09b8901f8432d6bc39910bce3
refs
author Claudio Yanes <me@claudio4.com>
Friday, March 4, 2022 02:07 +0000
committer Claudio Yanes <me@claudio4.com>
Friday, March 4, 2022 02:07 +0000
commit1313bd9779c638f09b8901f8432d6bc39910bce3
tree 710a1ae24144a1ebc43dac2e7eed0919d7554e25 tree | zip | gz
parent 5234fae080f1d3dca4f105438e3e0151f12ca61c view | diff
Move css and js to appropriate files

Having the CSS and JS in the html template produces pages larger
than necessary, as each page need to contain all the js/css.
Separating them in appropriate files allow the browser to just download
them once and use them for all the pages. This is even more effective
with an aggressive cache policy for the js and css, something that can
be done without fear thanks to the implemented cache-busting.
Also, having then in separate files allows us to use Hugo pipelines
for minimizing the code.
3 files added
4 files modified
5 files renamed
1051 ■■■■ changed files
assets/js/darkmode.js diff | view | raw | blame | history
assets/js/graph.js 221 ●●●●● diff | view | raw | blame | history
assets/js/popover.js 34 ●●●●● diff | view | raw | blame | history
assets/js/search.js 247 ●●●●● diff | view | raw | blame | history
assets/styles/base.scss diff | view | raw | blame | history
assets/styles/custom.scss diff | view | raw | blame | history
assets/styles/darkmode.scss diff | view | raw | blame | history
assets/styles/syntax.scss diff | view | raw | blame | history
layouts/partials/graph.html 238 ●●●●● diff | view | raw | blame | history
layouts/partials/head.html 23 ●●●●● diff | view | raw | blame | history
layouts/partials/popover.html 34 ●●●●● diff | view | raw | blame | history
layouts/partials/search.html 254 ●●●●● diff | view | raw | blame | history