Commit Graph
1279 Commits
Author SHA1 Message Date
George Cushen e9cec2d3e9 feat: add new gradient_angle option to page builder 2021-04-18 20:43:15 +01:00
George Cushen aa4ca206c8 feat: only show User Group headings in People widget when multiple
Hide User Group headings in People widget if admin chooses to only show one user group.
2021-04-18 20:42:27 +01:00
George Cushen 0994df7177 feat: allow SVG as Hero image 2021-04-18 20:41:34 +01:00
George Cushen 171648c808 fix: style mb 2021-04-16 21:57:38 +01:00
George Cushen 1e2347192a fix(widget): error msg 2021-04-16 19:38:34 +01:00
George Cushen ab8d28988e feat(widget): Experience - add brand logo error msg
Close #1781
2021-04-13 20:22:02 +01:00
George Cushen 153cf5b780 feat(widget): show brand logo in Experience + Accomplishments
To use, add SVG brand logo in lowercase to your `assets/media/icons/brands/` folder

BREAKING CHANGE:

Rename `assets/media/icon-pack/` to `assets/media/icons/`

Close #2259
Close #1781
2021-04-13 20:07:59 +01:00
George Cushen 97ff003d9f fix: Language name doesn't appear for zh-Hant
Language name doesn't appear when LanguageCode has a sub-code

The issue appears to be an inconsistency/bug with Hugo's `.Translations` lowercasing zh-Hant to zh-hant without offering a way to get the language code as it was defined.

We can workaround it for now by converting to lowercase to align with Hugo's current implementation.

Fix #2256
2021-04-13 19:56:28 +01:00
Naomi Chen f3ea40cc5f i18n: update zh-Hant.yaml (#2257) 2021-04-13 19:16:09 +01:00
George Cushen fda9f39d87 chore: bump min hugo version
To v0.81 to get Hugo bug fixes and enable multiline Hugo tpl refactoring, see https://github.com/gohugoio/hugo/releases/tag/v0.81.0
2021-03-24 19:42:00 +00:00
George Cushen 35b8b1f82c chore: bump version 2021-03-24 19:30:07 +00:00
George Cushen 35b5e1d420 feat: move media library from static/ to assets/
Refactor:
- business JSON-LD
- site_head
- Slider
- Gallery
- Video

Gallery is now intended only for local images in the page bundle (so that they can be optimized by Hugo).

Close #2119
2021-03-24 19:29:27 +00:00
George Cushen 17505c4581 refactor: Bootstrap JS URI
Rename URI as GitHub Pages doesn't automatically publish folders with underscores.

Netlify was unaffected.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2201#discussioncomment-508553
2021-03-22 00:47:51 +00:00
Imran Pollob 0eae617819 feat: upgrade Rose font pack (#2216)
to Google Font API v2
2021-03-18 23:26:15 +00:00
George Cushen cf32fde824 refactor: yarn format 2021-03-08 21:25:18 +00:00
George Cushen e14c68cb6d feat: migrate Audio shortcode to use assets/media/
Also support page dir asset or URL
2021-03-08 21:22:08 +00:00
George Cushen bd11c2663b fix: Mermaid diagrams not rendered on race condition
Appears to be race condition when using Mermaid's automatic rendering with `startOnLoad: true` option.

Workaround by manually rendering diagrams.
2021-03-08 21:19:19 +00:00
George Cushen f9505c2803 feat: make it easier to upscale figure images 2021-03-06 22:34:13 +00:00
George Cushen 1475a49114 fix: JS convert ESM back to iife 2021-03-06 21:45:15 +00:00
George Cushen 142c7c1d5d i18n: sync language packs 2021-03-06 14:44:28 +00:00
George Cushen fc38e80952 feat: add option to show translations in footer
Adds `Params.footer.show_translations` and `Params.main_menu.show_translations` options
2021-03-05 18:55:08 +00:00
George Cushen ae4d671d4c feat(style): wider XL container 2021-03-05 17:47:29 +00:00
George Cushen 3edb4ff8e7 feat: get page header image from page dir or assets media library 2021-03-05 17:23:43 +00:00
George Cushen ae7897c868 feat: add Hero support for design.flip and new media location
Flip reverses the order of the Hero. Can be used with multiple Heros to create the classic alternating feature showcase.
2021-03-05 17:19:57 +00:00
George Cushen d70e23ef55 refactor: build JS as ESM
Remove Bootstrap sourcemap ref as Hugo doesn't detect/publish it.
2021-03-04 19:00:51 +00:00
George Cushen 98294a9f1d refactor: simplify Figure style 2021-03-04 17:42:29 +00:00
George Cushen 1dfeec02ce refactor: ToC hooks 2021-03-03 13:21:07 +00:00
George Cushen f4b96e1432 refactor: ToC hooks 2021-03-03 12:41:52 +00:00
George Cushen 5529404d19 feat: workaround Hugo v0.81 error on Windows with remote figure
Hugo v0.81 on Windows will error when figure destination is a remote URL such that we have `resources.Get (path.Join "media" <URL>)`.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2205
2021-03-03 11:14:50 +00:00
George Cushen 3952bfc85c fix: previous commit 2021-02-26 16:45:04 +00:00
George Cushen 33e92dc8cb feat: update widget page to get backgrounds from assets/media/ dir
See #2119
2021-02-26 00:12:49 +00:00
George Cushen 6b9fdd9482 feat: enable Wowchemy attribution to be translated
Add EN and ZH translations.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2161
2021-02-25 18:14:21 +00:00
George Cushen ad6e481c0a feat: add options for page specific styling or integrations
Page's ID applied to body as `data-wc-page-id`. Can be accessed via CSS and JS to perform page-specific styling or integrations.

Also, introduces new page parameters, similar to widget params:
design.css_style
design.css_class

Close #1975
2021-02-25 16:08:09 +00:00
George Cushen 40e01c083e fix: previous commit - migrate lazysizes data-src to native src 2021-02-22 22:36:15 +00:00
George Cushen 432c6326ee feat: complete migration to native lazy loading
One less JS dependency.
2021-02-22 21:37:48 +00:00
George Cushen 69de00c0cd feat: add support for baidu_tongji and baidu_site_verification
The new options can be added under `marketing` in `params.toml`
2021-02-22 20:51:20 +00:00
George Cushen a9a74e160d feat: remove deprecated Alert shortcode which was replaced by Callout 2021-02-22 20:29:10 +00:00
George Cushen 0c48d88d80 feat: add support for Figure image theme and max_width
New options:

`theme="light"` inverts image when browsing in dark mode
`theme="dark"` inverts image when browsing in light mode
`max_width="300px"` sets an image max width

Also, improves use of Figure in `{{%` Markdown shortcodes (e.g. Callout) by further stripping HTML indentation.
2021-02-22 20:11:22 +00:00
George Cushen e27cbaca79 feat: enable Figure to be nested within a {{% Markdown shortcode
Based on user request to parse both Markdown and nested HTML shortcodes (Figures) within Callout shortcode: https://discord.com/channels/722225264733716590/742863504515793149/813105748283883570

Uses `{{-` to unindent HTML so that Figure shortcode can be nested within a `{{%` Markdown shortcode, such as Callout, without the HTML being rendered as a Markdown code block. This way we utilise Hugo's HTML in Markdown approach (aka Goldmark `unsafe`) rather than separating HTML from Markdown.

Previously, Figure could only be nested within a `{{<` HTML shortcode.
2021-02-21 21:24:03 +00:00
George Cushen 61bdd1108d fix: event/talk archive page
Fix https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2187
2021-02-21 18:58:21 +00:00
George Cushen d47703395c fix: callout rendering nested child shortcodes as markdown
See https://discord.com/channels/722225264733716590/742863504515793149/813105748283883570
2021-02-21 18:18:56 +00:00
George Cushen 1d58e5e819 feat: rename assets/images/ to assets/media/ and auto detect sharing image
The file uploader in Wowchemy CMS has also been updated to reflect the change.

BREAKING CHANGES:
- rename assets/images/ to assets/media/
- move default social sharing image (if any) to assets/media/sharing.*
2021-02-20 17:28:11 +00:00
George Cushen 05c772f389 fix: responsive Figure aspect ratio in Safari
See https://discord.com/channels/722225264733716590/742863504515793149/812308038174244904
See https://stackoverflow.com/a/61196907
2021-02-19 13:35:16 +00:00
George Cushen eebefd8a59 feat: add option to disable zoom in re-written Figure shortcode
Compatible with previous `lightbox` option.
2021-02-19 13:13:07 +00:00
vesvalim 55fd017f98 i18n: add Finnish (fi) translation (#2178) 2021-02-19 10:39:04 +00:00
George Cushen dc09534e2b fix: gallery detection on homepage
Workaround HasShortcode detection issue by defaulting to requiring fancybox. Can temporarily be disabled by setting `site.Params.require_fancybox` to `false`
2021-02-19 10:35:51 +00:00
George Cushen 3ae036b9c3 feat(style): update Bootstrap from 4.5 to 4.6
Get fixes and minor improvements
2021-02-19 10:01:40 +00:00
George Cushen f37581febe refactor: reflect renamed default branch
site.Params.edit_page.repo_branch will now also default to `main` if unset.
2021-02-19 09:04:29 +00:00
George Cushen 11814feeee fix(disqus): missing comment count in listing previews
Fix #2171
2021-02-19 08:31:12 +00:00
George Cushen 68595a20ae feat(shortcode): revert to img SVGs
Cacheable, zoomable, and lazily loaded.

Also, prevents conflicts if admin attempts to include multiple inline SVGs which unintentionally reuse each other's components.
2021-02-17 22:21:39 +00:00