You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How and where can I change the Hugo template behaviour to use locally stored JS and CSS dependencies like jquery, academicons, fontAwesome etc. (definitions in assets.toml and used in the partial site_head.html)
I ask this question because loading those dependencies from the external source has a negative influence using the performance scores of web.dev
How would you recommend to merge the css / js files with a Windows 10 environment ?
Could I e.g. do "type file1.css file2.css file3.css > main.min.css and the sam with the .js assets ?
The advises at the given link didn´t work completely - especially the icons coming from fontawesome didn´t work and as well the leaflet map wasn´t displayed
This is the new link, right? https://wowchemy.com/docs/hugo-tutorials/offline-site/
It had some problems to get the site "offline". Because static\css\vendor\main.min.css AND static\js\vendor\main.min.js must exist that it does not use an external cdn. See this code snippet in modules/wowchemy/layouts/partials/site_head.html {{ if and (fileExists (printf "static/css/vendor/%s" ($scr.Get "vendor_css_filename"))) (fileExists (printf "static/js/vendor/%s" ($scr.Get "vendor_js_filename"))) }}
Maybe this helps one or the other.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How and where can I change the Hugo template behaviour to use locally stored JS and CSS dependencies like jquery, academicons, fontAwesome etc. (definitions in assets.toml and used in the partial site_head.html)
I ask this question because loading those dependencies from the external source has a negative influence using the performance scores of web.dev
Beta Was this translation helpful? Give feedback.
All reactions