hugo-easy-gallery icon indicating copy to clipboard operation
hugo-easy-gallery copied to clipboard

Add theme file for easy install

Open cloventt opened this issue 3 years ago • 1 comments

With the addition of a theme.toml file, it is now possible to install the add-on as a git submodule in the "standard" way. These are the new installation instructions:

Check out this repo into your themes/ folder:

git submodule add [email protected]:liwenyip/hugo-easy-gallery.git themes/easy-gallery

Then update your ./config.toml to load the theme, for example:

theme = ["hugo-coder", "easy-gallery"]

cloventt avatar Jan 06 '22 23:01 cloventt

Reading https://gohugo.io/hugo-modules/theme-components/, it looks like if you have multiple themes that have the same filename for static/ and layouts files, the first theme with a given filename is used. While I anticipate this being a rare occurrence, can you add a note to the README that points to that page to refer to in the event of theme conflicts?

Thanks for the PR!

kishorbhat avatar Feb 28 '22 06:02 kishorbhat