Skip to content

Commit

Permalink
build: be a nice Hugo citizen in regards to screenshots
Browse files Browse the repository at this point in the history
and remove chrome from the theme site builder screenshots
  • Loading branch information
McShelby committed Sep 12, 2024
1 parent 59af8fd commit 1fe1efe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions exampleSite/content/dev/screenshots/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,28 @@ The content should be:

**Used by**:

- Hugo Themes info: https://themes.gohugo.io/themes/hugo-theme-relearn/ _1000 x 1500 @ 1_
- Hugo Themes info: https://themes.gohugo.io/themes/hugo-theme-relearn/ _1000 x 1500 @ 1_ (`images/screenshot.png`)
- Hugo Themes gallery: https://themes.gohugo.io/tags/docs/ _900 x 600_ @ 1 (`images/tn.png`)

**Page URL**: [Screenshot Link](shortcodes/notice)

**Creation**:

- save as `images/screenshot.png`
- from original screenshot, scale to _900 x 600_ and save as `images/tn.png`

**Remarks**:

The location is mandatory due to Hugo's theme site builder.
The locations are mandatory due to Hugo's theme site builder.

**Preview** `images/screenshot.png`:

![Screenshot](/images/screenshot.png?width=50%25&height=50%25)

**Preview** `images/tn.png`:

![tn](/images/tn.png?width=50%25&height=50%25)

## Hero Image

**Content**:
Expand All @@ -58,7 +64,6 @@ The content should be:

**Used by**:

- Hugo Themes gallery: https://themes.gohugo.io/tags/docs/ _900 x 600_
- Hugo Themes notes: https://themes.gohugo.io/themes/hugo-theme-relearn/ _1280 x 640_
- GitHub project site: https://github.com/McShelby/hugo-theme-relearn _1280 x 640_
- GitHub social media preview: https://github.com/McShelby/hugo-theme-relearn/settings _1280 x 640_
Expand All @@ -71,17 +76,8 @@ The content should be:
- Desktop: light theme _1440 x 900 @ 1_
- Tablet: light theme _778 x 1038 @ 1_
- Phone: dark theme _450 x 801 @ .666_
- From original template size resize to _2700 x 1800_ centered, scale to _900 x 600_ and save as `images/tn.png`
- From original template size resize to _3000 x 1500_ offset y: _-330_, scale to _1280 x 640_ and save as `images/hero.png`

**Remarks**:

The location of `images/tn.png` is mandatory due to Hugo's theme site builder.
- From original template resize to _3000 x 1500_ offset y: _-330_, scale to _1280 x 640_ and save as `images/hero.png`

**Preview** `images/hero.png`:

![Hero](/images/hero.png?width=50%25&height=50%25)

**Preview** `images/tn.png`:

![tn](/images/tn.png?width=50%25&height=50%25)
Binary file modified images/tn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1fe1efe

Please sign in to comment.