Commit Graph
1177 Commits
Author SHA1 Message Date
gcushen 067b2a7f09 refactor: format code 2021-01-09 19:38:09 +00:00
George Cushen 68c25ddc4a ci: convert json config to yaml 2021-01-09 19:37:31 +00:00
George Cushen 020a14902f ci: fix format job 2021-01-09 19:28:29 +00:00
George Cushen 1ae0fdbb74 ci: use yarn for consistency 2021-01-09 19:26:12 +00:00
George Cushen 6a8dd446ce feat: show chapter in Book mobile menu
Effectively replaces breadcrumbs on mobile and hides the dedicated Book search box.
2021-01-09 19:09:33 +00:00
George Cushen 095cd1e691 ci: add JS linter, code formatter, and fix Hugo working dir 2021-01-09 18:15:38 +00:00
George Cushen d18b2c9def refactor: lint JS and SCSS
Add JS and style linters.
All JS linted and refactored.
TODO: Further SCSS refactoring required - temporary "no-descending-specificity" rule added.
2021-01-09 18:13:47 +00:00
George Cushen 0153af8283 refactor(yaml): run code formatter 2021-01-09 00:12:12 +00:00
George Cushen 79b48a3730 refactor(style): run code formatter 2021-01-08 23:58:43 +00:00
George Cushen 3d8b76f092 refactor(js): run code formatter 2021-01-08 23:29:50 +00:00
Julen Etxaniz 2918496790 i18n: update EU and ES translations (#2085) 2021-01-08 19:03:26 +00:00
George Cushen a3ff1f31c6 feat: support multi-lingual common searches
Workaround Hugo's lack of support for multilingual data files.
2021-01-08 18:54:42 +00:00
George Cushen 7b3aff07a7 feat: migrate to latest web best practices
Improve accessibility, informed by Google Lighthouse insights.

Part 3
2021-01-08 18:50:55 +00:00
George Cushen 09b3dca341 feat: support multi-lingual common searches
See https://discord.com/channels/722225264733716590/742863504515793149/796527990522511370
2021-01-07 15:44:49 +00:00
George Cushen 68b9925c93 fix(js): no Popper tooltips when search disabled
Fix #2084
2021-01-06 23:32:22 +00:00
George Cushen 70c465806c feat: migrate to latest web best practices
Informed by Google Lighthouse insights.

Part 2 - also see 4b9ee3021c
2021-01-06 22:20:27 +00:00
George Cushen 4b9ee3021c feat: migrate to latest web best practices
Informed by Google Lighthouse insights.

The demo of the light Academic template now achieves 100% Accessibility, 100% Best Practices, and 100% SEO scores.

Hero image can now be moved from the media library to the widget page folder, e.g. `home/`, to become responsively sized.
2021-01-06 21:55:05 +00:00
George Cushen fe24b613d5 fix(scss): shortcut overflow with some font packs
Fix 7c3ee80
2021-01-05 22:55:57 +00:00
George Cushen 7c3ee805f7 feat: change behavior of sidebar search to open modal
Scope: the built-in search engine.

Provides one consistent interface for searching and thus surfacing common search queries to the user and in future typeahead.

Also, display the search keyboard shortcut and improve accessibility in Book TOC menu.
2021-01-05 22:37:27 +00:00
Nobuto Murata f35d4b1858 feat: enable site admin to disable WebAppManifest (#2056) 2021-01-05 19:24:46 +00:00
Tony Lam 6bcba757cd feat(js): migrate Google Maps options to be compatible with latest API
Google have deprecated and changed options in the API.

See https://developers.google.com/maps/documentation/javascript/reference/map
See #2075
2021-01-05 19:09:58 +00:00
George Cushen ccd2ab1ce2 fix(js): case of theme variation flicker
The set of conditions that can cause a flicker in this case are `day_night: true` (allow visitor to change theme mode) with a dark theme (`light: false`) and a user device which prefers dark themes.

Fix #2080
2021-01-05 18:54:35 +00:00
Julen Etxaniz f40841ce36 i18n: update EU and ES translations (#2072)
This PR updates eu.yaml and es.yaml translations with the recent changes.
2021-01-02 00:58:08 +00:00
George Cushen 25e0b0627f feat: support common queries in search dialog
Common queries can be added to `data/search_queries.yaml` (experimental feature).
Refactor Wowchemy keyboard shortcut parser.
Fix JS/CSS assets being minified/fingerprinted in dev env.

Close #2060
2020-12-30 22:46:46 +00:00
George Cushen e74f28542d perf: cache website.html partial 2020-12-30 22:01:00 +00:00
Christian Olsen 14a72fa460 feat: add support for breadcrumb navigation (#2009)
Adds support for breadcrumb navigation on Book pages.

Consider this feature experimental for now as it may still change. Add the following to bottom of `params.toml` to use:

```
[breadcrumb]
  page_types = {book = true}
```

Future work: prefix link title with page icon when set in order to be consistent with Book menu links (https://github.com/wowchemy/wowchemy-hugo-modules/pull/2009#discussion_r549530364)
2020-12-30 18:16:47 +00:00
George Cushen 219b05cbd2 refactor: support any event type
Informed by user demand to support all event types rather than just talks.

Brings consistency to further align Academic and Research Group templates.

BREAKING CHANGE:

Rename `talk` folder to `event`
Remove `type` set to `talk` in any event front matter (if applicable)
To keep existing `/talk/` URLs, set the following in `config.toml`:

```
[permalinks]
  events = "/talk/:slug/"
```
2020-12-28 23:18:01 +00:00
Eugen Richter ca84784cf4 i18n: update DE (#2061)
Add missing translations for theme switching
2020-12-28 16:58:37 +00:00
George Cushen ed047ad576 fix(css): hide any .article-style Y-overflow
Close #2051
2020-12-28 16:56:44 +00:00
George Cushen 9cce661db8 feat(cms): add label and display options to Author admin
See #2010
2020-12-24 14:45:27 +00:00
Christian Olsen e99eb34795 feat: add option to show superuser social links in header (#2010)
To use, add label and display options to superuser's `social` links:

```
social:
- icon: twitter
  icon_pack: fab
  link: https://twitter.com/<USERNAME>
  label: Follow me on Twitter
  display:
    header: true
```
2020-12-24 14:15:26 +00:00
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