Commit Graph
160 Commits
Author SHA1 Message Date
George Cushen 19ca4a39f2 feat: remove deprecated Docs layout - was replaced with Book in v5.0b0 2021-06-15 20:05:06 +01:00
George Cushen 3b4bcad8c6 feat: portable figures - display figures in Markdown editors
Figures can now be created by using the standard, portable Markdown syntax:

![screen reader text](image.jpg "caption")

Where the image is in the page folder, the media library, or is a remote URI.
2021-06-14 22:08:31 +01:00
George Cushen 27b4916784 feat: check user's choice of color theme exists 2021-06-13 14:32:02 +01:00
Bryan J Hogan 526d011a44 fix: workaround Hugo bug with GetPages fetching page from diff path to that specified (#2284)
User reported Hugo trying to fetch privacy page from a "tag/privacy" folder rather than root
2021-06-13 00:14:37 +01:00
George Cushen efdea8f259 perf: async load icons 2021-06-11 20:50:08 +01:00
George Cushen db4dcf6541 feat: support view for course archive & custom section archives
The fullback list view for archive pages did not previously support the `view` option, instead presenting lists in one specific format.

If a user creates a custom section name (e.g. `content/prj/`) that doesn't correspond with a built-in page type, they now have the option not to use the default list view by defining `view` in the associated `_index.md` file.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2323
2021-06-06 14:07:13 +01:00
George Cushen e9d82a2421 fix: nested figure in callout 2021-06-02 23:21:23 +01:00
George Cushen 01a25ecaec feat: delay PostCSS processing with resources.PostProcess
resources.PostProcess delays processing of a resource until the rest of the build has finished.

This allows the public folder or Hugo's hugo_stats.json file to be used as the content for PurgeCSS, so that only CSS that is used on the final website will be included.

Close #2318
2021-06-01 19:35:57 +01:00
George Cushen 3ea78d2c66 feat: support animated GIF in figures
Workaround Hugo converting animated gifs to static gifs: https://github.com/gohugoio/hugo/issues/5030
2021-05-31 18:59:42 +01:00
George Cushen bbca6dea78 feat: load gallery from media dir & add gallery display options
Add gallery `order` with options "asc" or "desc"

Add gallery `resize_options` which supports Hugo image processing options.

BREAKING CHANGE:
Move gallery album folders to `assets/media/albums/`. Album name should be defined in shortcode as `album`.

Fix #2245
2021-05-31 12:21:56 +01:00
George Cushen 81ba175229 fix: 404 "latest" don't list pages which Hugo doesn't render
where

_build:
  render: never
2021-05-26 23:38:49 +01:00
George Cushen f2a5331af0 fix: 404 "latest" order when some pages contain weights
Revert addition of homepage in latest - from prev commit
2021-05-26 23:20:38 +01:00
George Cushen 079a61ab10 fix: 404 "latest" order when some pages contain weights
Prevent Hugo ordering weighted pages higher in the "latest" content list.

Also include course/docs index pages (Hugo "sections") and remove private pages (although Hugo render option is preferred equiv to "private:true")
2021-05-26 23:09:50 +01:00
George Cushen 89d079bcf0 fix: comment 2021-05-25 22:07:30 +01:00
George Cushen 8711be90e7 feat: support custom order for experience
Close #1761
2021-05-25 21:55:30 +01:00
George Cushen 8bba30b81a fix: unminified JavaScript (#2305)
Repeat prev commit action on the init script
2021-05-25 19:51:11 +01:00
Alexander Zhang b860e6c775 fix: unminified JavaScript (#2305)
Appears that behavior of recent Hugo versions changed w.r.t. JS formatting
2021-05-25 19:32:39 +01:00
Mark Boss 84e462a5a1 feat: support Bing site verification (#2287)
Via params.yaml > marketing > bing_site_verification
2021-05-16 11:12:31 +01:00
Alexander Zhang 2d9c18ecf0 fix: nonexistent navbar button aria-controls ID (#2268) 2021-05-01 20:13:34 +01:00
Alexander Zhang bfa3808cb6 style: prevent empty p tag when there is no copyright (#2271) 2021-04-22 20:27:24 +01:00
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 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
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 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 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 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