Skip to content

components preloader

Victor González-Pacheco edited this page Apr 17, 2025 · 1 revision

preloader components

Install Module

Add the following code to your module list in the config/_default/module.toml file.

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/preloader"

Add the following code to your assets/scss/main.scss or assets/scss/style.scss file.

@import 'preloader';

Preloader Implementation

Call it, as a partial in your theme.

<!-- preloader -->
{{ partial "preloader.html" . }}

Define the preloader in the config/_default/params.toml file.

# Preloader
[preloader]
enable = true
preloader = "" # use jpg, png, svg or gif format.

Clone this wiki locally