30 Juni
Publish date: Jun 30, 2019
Last updated: Jul 10, 2019
Last updated: Jul 10, 2019
- Minify and fingerprint assets
- hugo can do it using hugo pipes
- assets like HTML,css,js are stored
/assets
directory- Assets will only be published (to /public) if .Permalink or .RelPermalink is used.
hugo can bundle and concatinate resources
{{ $plugins := resources.Get "js/plugins.js" }} {{ $global := resources.Get "js/global.js" }} {{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
Use already available js for image gallery fancyboxy
HOw to compile css, minify and fingerprint assets with hugo?
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
or
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
How to add Full text search functionality on static site?
a tool for quickly indexing our content;
a full-text search API, preferably one that is free; some JavaScript code to call the API and show the results.