Commit graph

1146 commits

Author SHA1 Message Date
George Cushen
e47738df59 feat: add Earth theme pack 2020-12-21 15:32:45 +00:00
George Cushen
ce5b08f719 fix(css): scroll wide tables
Caused by a previous commit which added word-break to `article-style`.

Fix #2044
2020-12-21 14:41:54 +00:00
George Cushen
817e89f73b feat(css): allow gradient section BGs in color theme packs 2020-12-21 01:00:35 +00:00
George Cushen
0eb331a7f6 fix(js): theming flash
Fix case of potential theming flash when `day_night` disabled.

Fix 6c434e6de2
2020-12-21 00:59:06 +00:00
George Cushen
6c434e6de2 refactor: fixMermaid() to dedicated vanilla JS module
Refactored from JQuery.
Module can now also be imported for use in Reveal v4 PR.

Also fix Theme Chooser due to 5b7f5da refactor.

See #2018
Fix 5b7f5da
2020-12-20 00:45:21 +00:00
George Cushen
5b7f5daa5b fix: Mermaid and HLJS theming
A recent refactor caused Mermaid and HLJS themes to not always be applied correctly, for example with theme pack default of light mode but user chosen Dark mode.
2020-12-19 23:10:16 +00:00
George Cushen
dd2bde730e feat(shortcode): migrate Spoiler to new standardized HTML
Toggle lists have now been standardized in HTML. Functions just like the toggle lists on Github.

Also now supports Markdown in title and works better with longer titles (unlike the previous button based component).
2020-12-19 20:17:58 +00:00
George Cushen
666ae317ea chore: edit .github 2020-12-19 19:30:46 +00:00
George Cushen
014fdb8ebf feat(cms): add support for editing Publications
Close #1631
2020-12-19 17:47:01 +00:00
George Cushen
769d5f0ad1 feat: if using GitHub API, reduce requests in dev env
For sites using the `.js-github-release` feature to get the latest release of their project, prevent sending request to GitHub everytime Hugo Server reloads pages.
2020-12-19 15:32:48 +00:00
George Cushen
42e60e0287 fix: author sharing image due to Hugo breaking change
When sharing the page of an author profile (/author/author-name), the avatar image was no longer shown as the sharing image.

Hugo team made a breaking change in recent Hugo versions to rename the page `.Kind` to `term` instead of `taxonomy` in this case so the statement was no longer triggered.

Fix #1987
2020-12-19 15:02:50 +00:00
George Cushen
69856326c6 feat(cms): add support to edit widget backgrounds
Supports:
- Solid color
- Gradient color
- Image background
- Darken image
- Text color light/dark
2020-12-16 15:28:42 +00:00
George Cushen
a0b9887f37 fix(cms): don't require to select the featured image in the image chooser 2020-12-13 18:41:17 +00:00
George Cushen
332dd21791 feat(cms): add support for editing homepage in CMS
Also, make more params optional such as `draft`
2020-12-13 17:50:53 +00:00
George Cushen
a03ad69ff6 refactor: replace site.Params.link_authors with Hugo's new _build capability
Hugo now directly supports page build options, so can remove workaround.
2020-12-13 16:00:15 +00:00
George Cushen
f6090cd7e5 fix: JS when Portfolio widget created without a toolbar 2020-12-11 02:36:54 +00:00
George Cushen
172150c6f0 feat: add Cyberpunk font theme 2020-12-09 23:37:49 +00:00
George Cushen
9d9149a2ae feat: add Cyberpunk color theme 2020-12-09 23:23:50 +00:00
George Cushen
1d54566688 refactor: JS 2020-12-08 22:17:17 +00:00
George Cushen
d70da89199 fix: Mermaid and Plotly page overflow
Mermaid and Plotly need to have their max-width constrained or they can overflow page width as they set their own fixed max-width in pixels, which can be wider than the page.

One workaround is to set `grid-template-columns` to `100%`. Another is to set a responsive fixed max-width on their parent elements or article-container.

Fix 1c05374
2020-12-05 22:43:43 +00:00
Paaz CA
1c053746c5
fix: case of vertical scrollbar overlaying content (#2013) 2020-12-05 21:10:21 +00:00
Paaz CA
9675a85372
fix: CSS fingerprinting when using Hugo's -e arg (#2017)
Hugo allows two ways to set a production environment.

The HUGO_ENV approach used by Netlify was working fine, but in case of running `hugo server -e production`, the CSS file wasn't fingerprinted.
2020-12-05 20:30:45 +00:00
Paaz CA
a67ec5e691
i18n: update Hebrew translation (#2014)
Updates Hebrew translation and improves consistency.
2020-12-05 20:14:14 +00:00
George Cushen
5fa9412f9e chore: bump version to v5 Beta 1. 2020-12-04 17:47:23 +00:00
George Cushen
ec46e9e38f feat: support multiple books each with its own dedicated sidebar
Previously, in case of a site with multiple books in a folder, all books shared the same side bar menu listing ALL books and their pages.

List of books (aka book of books) is naturally supported by creating an `_index.md` of `type: page` in the parent folder which contains multiple book folders.

Also bump version to v5 Beta 1.
2020-12-04 17:46:56 +00:00
George Cushen
161cdb903e feat(widget): add support to customize See All link in Featured widget
Documentation: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1800#issuecomment-678817441

BREAKING CHANGE
Removes the old experimental option `content.link_to_archive`

Follows on from Pages widget implementation in 05bfd7c
See #1800
2020-12-04 16:25:23 +00:00
George Cushen
b634d637f1 feat(widget): show email (if entered) in About widget
Previously email only shown if exists and the email form is disabled.

However, both Formspree and Netlify no longer use email address as a parameter, and received request to show email (if entered), in addition to email form, so visitors have the choice to use their usual email client to send a message.

Therefore, show the email address if it was entered.
2020-12-04 15:45:16 +00:00
George Cushen
cdcfa2da28 fix: load page with hash + multiple Portfolio widgets with images
In case of loading a page with a hash set and having multiple Portfolio widgets (Isotope instances) with images, scroll directly to the offset only once all Isotope instances have fully loaded their images and initialised.

Fixes issue with scrolling conflicts due to 600ms hash scroll on page load combined with 600m hash scroll on each Isotope widget loaded, whilst hash offset, if occurring after one or more Portfolio widgets, can be converging.

Replace JS approach for onload scroll to anchor with CSS scroll-padding-top, now that the CSS standard added support for scroll offsets.

Fix #1992
2020-11-29 12:47:59 +00:00
rodrigoalcarazdelaosa
e0d593e688
i18n: update es.yaml (#1998)
Put it on par with the latest en.yaml.
2020-11-27 23:22:26 +00:00
George Cushen
81c301acbb docs: edit contributing.md
Add create widget
Add create shortcode
Add scope info
2020-11-27 22:20:38 +00:00
rodrigoalcarazdelaosa
d5663b2abb
fix(widget): Portfolio .project.card width (#1985)
Fixes 2 and 3 column responsive card layouts leaving extra space at far right side.

Fixes #1981
2020-11-27 22:08:47 +00:00
George Cushen
3a03b728de feat: lazy load images in list items
Assumes list items generally occur below the fold.

May increase Lighthouse scores.

See #1986
2020-11-25 23:02:19 +00:00
George Cushen
8c20b50361 fix(axe): gallery alt 2020-11-23 23:22:32 +00:00
George Cushen
2cdf158914 fix(axe): accessibility improvements 2020-11-23 22:32:03 +00:00
George Cushen
057ded33f5 chore: remove Wowchemy as direct dependency in Hello World theme mod 2020-11-23 00:57:17 +00:00
George Cushen
83f9eef4bc chore: fix Hello World mod to latest master 2020-11-23 00:55:34 +00:00
George Cushen
0a5f34e243 fix(axe): dark header contrast improvement 2020-11-23 00:46:27 +00:00
George Cushen
9e64cb52c7 fix(axe): accessibility improvements 2020-11-22 20:42:42 +00:00
George Cushen
1370a7faa1 chore: update .github/ 2020-11-21 22:51:18 +00:00
George Cushen
38b599c504 fix(scripts): path 2020-11-21 22:27:16 +00:00
George Cushen
c8ceff11dd fix: spacing issue with nested lists in Experience widget
Original style wasn't intended for nested lists to be used within card text.

Fix #1979
2020-11-21 20:35:04 +00:00
George Cushen
58c7dd7a0a fix: edge case causing horizontal scrollbar
Prevent horizontal scrollbar in case of 100vw grid applied to page with vertical scrollbar.

Fix f851142
Fix #1976
2020-11-20 23:16:09 +00:00
George Cushen
1c275b0e61 fix: edge case causing horizontal scrollbar
Prevent horizontal scrollbar in case of 100vw grid applied to page with vertical scrollbar.

Fix f851142
Fix #1976
2020-11-20 22:58:05 +00:00
George Cushen
4dc8eff074 fix: Hugo minfiy removes spaces in Figure captions
Add explicit   to prevent Hugo stripping desired spaces.

Fix #1972
2020-11-19 20:22:04 +00:00
Jim Vine
c9c3e5f51a
feat: make users' roles optional in People widget (#1971)
Add `show_role` option to People widget to hide/show users' roles.
2020-11-19 16:03:53 +00:00
Emanuele Bardelli
fe49f96267
fix: add definition for $show_organizations to People widget
Commit 97606bf added support for show_organizations in the people widget. The original author forgot to add the definition of this variable at top of the widget, leading to hugo not being able to build the site because the variable was not initialized.

This commit adds a definition for show_organizations at the top of the widget and fixes the build error.

Fix 97606bf
2020-11-19 11:45:12 +00:00
Tom Vercauteren
97606bf9c6
feat: option to list each person's organization in People widget
To use, add `show_organizations: true` to People widget front matter

Closes #1941
See #1953
2020-11-18 20:43:02 +00:00
George Cushen
9852d63bc4 build: inc Hugo version to get bug fixes
Hugo 0.78.0 bugs may affect user sites - https://discord.com/channels/722225264733716590/742863504515793149/778311348819853392
2020-11-17 18:11:03 +00:00
George Cushen
1597dca920 feat: provide safe fallback for publication type
In case pub_type missing from pub front matter

See https://github.com/wowchemy/starter-academic/issues/147#issue-744067542
2020-11-16 22:44:57 +00:00
George Cushen
31ce192ed9 docs: edit contributing.md 2020-11-15 20:41:49 +00:00