diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-19 18:56:55 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-19 19:14:31 +0300 |
commit | 4c22192e3f57edf9e91c365a2ddf1134b3fee648 (patch) | |
tree | 7ddae3019b10fb3dffca211554932ac9062e1416 | |
parent | 9bf3fc45b13880c8b0420c3949fe1d22f6b0db78 (diff) |
Add github.com/bep/gallerydeluxe
Also adjust to allow JPG images for thumbnail etc.
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | cmd/hugothemesitebuilder/build/cache/0002.githubrepos.json | 11 | ||||
-rw-r--r-- | cmd/hugothemesitebuilder/build/config.json | 15 | ||||
-rw-r--r-- | cmd/hugothemesitebuilder/build/go.mod | 1 | ||||
-rw-r--r-- | cmd/hugothemesitebuilder/build/go.sum | 2 | ||||
-rw-r--r-- | pkg/buildcmd/build.go | 16 | ||||
-rw-r--r-- | themes.txt | 3 |
7 files changed, 44 insertions, 16 deletions
@@ -9,7 +9,7 @@ A collection of themes created by the Hugo community. Builds to [themes.gohugo.i # Themes are removed if not up to date - +png The current policy is to expire a theme if not updated (version date) for the last years. Even if your theme is feature complete, it's appreciated that you check on from time to time and verify that it works with never Hugo versions. @@ -19,7 +19,7 @@ Create your theme using <code>hugo new theme <em>THEME_NAME</em></code>. In your * Add a `config.toml` with supported Hugo version(s) and `theme.toml` file to the root of the theme and add some metadata about the theme ([see below](#theme-configuration)); * Add a descriptive `README.md` to the root of the theme ([see below](#readmemd)); -* Add `/images/screenshot.png` and `/images/tn.png` ([see below](#media)). +* Add `/images/screenshot.{png,jpg}` and `/images/tn.{png,jpg}` ([see below](#media)). Once your theme repository is on GitHub, you can add it here. @@ -100,11 +100,11 @@ If a submission is found to violate the LICENSE of an original theme, it will be Screenshots are used as theme previews in the list. They should feature a theme's layout (without any browser chrome or device mockups) and have the following dimensions: * Both the Thumbnail and Screenshot must be in 3:2 aspect ratio. -* Screenshot (`screenshot.png`) should have a dimension of at least 1500×1000 in pixels. -* Thumbnail (`tn.png`) should have a dimension of at least 900×600 in pixels. +* Screenshot (`screenshot.png` or (`screenshot.jpg`) should have a dimension of at least 1500×1000 in pixels. +* Thumbnail (`tn.png` or `tn.jpg`) should have a dimension of at least 900×600 in pixels. * Media must be located in: - * <code><em>[ThemeDir]</em>/images/screenshot.png</code> - * <code><em>[ThemeDir]</em>/images/tn.png</code> + * <code><em>[ThemeDir]</em>/images/screenshot.{png,jpg}</code> + * <code><em>[ThemeDir]</em>/images/tn.{png,jpg}</code> Additional media may be provided in that same directory. diff --git a/cmd/hugothemesitebuilder/build/cache/0002.githubrepos.json b/cmd/hugothemesitebuilder/build/cache/0002.githubrepos.json new file mode 100644 index 0000000..e9f4279 --- /dev/null +++ b/cmd/hugothemesitebuilder/build/cache/0002.githubrepos.json @@ -0,0 +1,11 @@ +{ + "github.com/bep/gallerydeluxe": { + "id": 538049920, + "created_at": "2022-09-18T08:44:48Z", + "updated_at": "2022-09-18T20:49:37Z", + "name": "gallerydeluxe", + "description": "Work in progress.", + "html_url": "https://github.com/bep/gallerydeluxe", + "stargazers_count": 0 + } +}
\ No newline at end of file diff --git a/cmd/hugothemesitebuilder/build/config.json b/cmd/hugothemesitebuilder/build/config.json index a2c1b94..16225d1 100644 --- a/cmd/hugothemesitebuilder/build/config.json +++ b/cmd/hugothemesitebuilder/build/config.json @@ -7,11 +7,6 @@ { "ignoreImports": true, "noMounts": true, - "path": "github.com/httpsecure/kembang" - }, - { - "ignoreImports": true, - "noMounts": true, "path": "github.com/10mohi6/hugo-theme-simple-blog" }, { @@ -197,6 +192,11 @@ { "ignoreImports": true, "noMounts": true, + "path": "github.com/bep/gallerydeluxe" + }, + { + "ignoreImports": true, + "noMounts": true, "path": "github.com/Binary-Eater/hugo-theme-ghci" }, { @@ -747,6 +747,11 @@ { "ignoreImports": true, "noMounts": true, + "path": "github.com/httpsecure/kembang" + }, + { + "ignoreImports": true, + "noMounts": true, "path": "github.com/hugcis/hugo-astatine-theme" }, { diff --git a/cmd/hugothemesitebuilder/build/go.mod b/cmd/hugothemesitebuilder/build/go.mod index 55122c2..bc9d156 100644 --- a/cmd/hugothemesitebuilder/build/go.mod +++ b/cmd/hugothemesitebuilder/build/go.mod @@ -91,6 +91,7 @@ require ( github.com/bake/solar-theme-hugo v0.0.0-20210403202535-97632b71c241 // indirect github.com/balaramadurai/hugo-travelify-theme v0.0.0-20210303090448-5a6df71c4d94 // indirect github.com/bep/docuapi/v2 v2.2.0 // indirect + github.com/bep/gallerydeluxe v0.1.0 // indirect github.com/bjacquemet/personal-web v0.0.0-20210930154027-95178cb6bf55 // indirect github.com/blankoworld/hugo_theme_adam_eve v0.0.0-20200722201457-6d39f5f2e2ed // indirect github.com/boratanrikulu/eternity v0.0.0-20220904193902-347d0088f301 // indirect diff --git a/cmd/hugothemesitebuilder/build/go.sum b/cmd/hugothemesitebuilder/build/go.sum index adb0458..4a2819c 100644 --- a/cmd/hugothemesitebuilder/build/go.sum +++ b/cmd/hugothemesitebuilder/build/go.sum @@ -177,6 +177,8 @@ github.com/balaramadurai/hugo-travelify-theme v0.0.0-20210303090448-5a6df71c4d94 github.com/balaramadurai/hugo-travelify-theme v0.0.0-20210303090448-5a6df71c4d94/go.mod h1:+VvFoV1qzI0Aly8CmxpSwLiGH9RVEexM0bBDBUT521k= github.com/bep/docuapi/v2 v2.2.0 h1:rd5R3XZMjp45lXpfjPM9+C0Prt2pJzgiHXvdA2U48Mw= github.com/bep/docuapi/v2 v2.2.0/go.mod h1:61SkJTCwqcIBqpMsUokAjyljnSiRHV74idrhPF2f+os= +github.com/bep/gallerydeluxe v0.1.0 h1:sw5Mv/0mrFEo9u1ZJGuttkpVcMSXIAn7ubAT57NBYqo= +github.com/bep/gallerydeluxe v0.1.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8= github.com/bjacquemet/personal-web v0.0.0-20210930154027-95178cb6bf55 h1:X95Y1Q86jMCh8A7yUoc40Cp06TqF/QGpNLuXVbh6Mc8= github.com/bjacquemet/personal-web v0.0.0-20210930154027-95178cb6bf55/go.mod h1:DsXz9EZYMBXvuTEFFKLfRy8cjjBxgsPfwK516DyAx8E= github.com/blankoworld/hugo_theme_adam_eve v0.0.0-20200722201457-6d39f5f2e2ed h1:o0+p/85ZhA3844FA57Kk228raZfglpkFXrRFqE37Oys= diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go index b503c09..38bc405 100644 --- a/pkg/buildcmd/build.go +++ b/pkg/buildcmd/build.go @@ -271,16 +271,24 @@ func (c *buildClient) writeThemeContent(k string, m client.Module) error { } copyImage := func(source, target string) error { - if err := copyIfExists(source, target); err != nil { - return fmt.Errorf("image %q not found in %q", source, k) + var foundOne bool + for _, ext := range []string{".png", ".jpg"} { + if err := copyIfExists(source+ext, target+ext); err == nil { + foundOne = true + break + } + } + if !foundOne { + return fmt.Errorf("no image found for %q", source) } + return nil } - if err := copyImage("images/tn.png", "tn-featured.png"); err != nil { + if err := copyImage("images/tn", "tn-featured"); err != nil { return err } - if err := copyImage("images/screenshot.png", "screenshot.png"); err != nil { + if err := copyImage("images/screenshot", "screenshot"); err != nil { return err } @@ -1,4 +1,3 @@ -github.com/httpsecure/kembang github.com/10mohi6/hugo-theme-simple-blog github.com/2-REC/hugo-myportfolio-theme github.com/4ever9/less @@ -36,6 +35,7 @@ github.com/azmelanar/hugo-theme-pixyll github.com/bake/solar-theme-hugo github.com/balaramadurai/hugo-travelify-theme github.com/bep/docuapi/v2 +github.com/bep/gallerydeluxe github.com/Binary-Eater/hugo-theme-ghci github.com/bjacquemet/personal-web github.com/blankoworld/hugo_theme_adam_eve @@ -146,6 +146,7 @@ github.com/hivickylai/hugo-theme-sam github.com/hootan09/simple-cv github.com/hossainemruz/toha github.com/htr3n/hyde-hyde +github.com/httpsecure/kembang github.com/hugcis/hugo-astatine-theme github.com/hugo-fixit/FixIt github.com/hugo-next/hugo-theme-next |