👉 English README | 简体中文说明
TODO description here if needed
TODO demo here if needed
- FixIt v0.3.12 or later.
The installation method is the same as installing a theme. There are several ways to install, choose one, Here are two mainstream ways.
First make sure that your project itself is a Hugo module.
Then add this theme component to your hugo.toml
configuration file:
[module]
[[module.imports]]
path = "github.com/hugo-fixit/FixIt"
[[module.imports]]
path = "github.com/hugo-fixit/{component-xxx}"
On the first start of Hugo it will download the required files.
To update to the latest version of the module run:
hugo mod get -u
hugo mod tidy
Clone FixIt and this git repository into your theme folder and add it as submodules of your website directory.
git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt
git submodule add https://github.com/hugo-fixit/{component-xxx}.git themes/{component-xxx}
Next edit hugo.toml
of your project and add this theme component to your themes:
theme = ["FixIt", "{component-xxx}"]
In order to Inject the partial {component-xxx}.html
into the custom-assets
through the custom block opened by the FixIt theme in the layouts/partials/custom.html
file, you need to fill in the following necessary configurations:
[params]
[params.customPartials]
head = []
profile = []
aside = []
comment = []
footer = []
widgets = []
assets = [
"inject/{component-xxx}.html",
]
postFooterBefore = []
postFooterAfter = []
TODO configuration here if needed ...
Here is an example of usage:
{{< shortcode-xxx >}}