Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme file for easy install #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ Automagical css image gallery in [Hugo](https://gohugo.io/) using shortcodes, wi
- Loads PhotoSwipe js and css libraries from `cdnjs.cloudflare.com`

## Installation
### As a Theme
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"]
```

### Manual Installation
Put files in following places:

- /layouts/shortcodes/figure.html
Expand Down
10 changes: 10 additions & 0 deletions theme.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "Easy Gallery"
license = "MIT"
licenselink = "https://github.com/liwenyip/hugo-easy-gallery/blob/master/LICENCE.md"
description = "Automagical css image gallery in Hugo using shortcodes, with optional lightbox/carousel gadget using PhotoSwipe and jQuery."
homepage = "https://github.com/liwenyip/hugo-easy-gallery"
min_version = "0.79.0"

[author]
name = "Li-Wen Yip "
homepage = "https://www.liwen.id.au/"