Commit Graph
1217 Commits
Author SHA1 Message Date
George Cushen e470c4e2cf feat: add options for branch, local_backend, and publish_mode (editorial flow)
Example for a YAML config:

```
  cms:
    branch: main
    local_backend: true
    publish_mode:
 ```

Close #2124
2021-02-09 21:44:47 +00:00
George Cushen 60d36e66d2 refactor: rename options for maps, search, and comments
Use provider names rather than integers.

BREAKING CHANGE:

- Rename `site.Params.comments.engine` to `site.Params.comments.provider`
- Rename `site.Params.search.engine` to `site.Params.search.provider`
- Rename `site.Params.map.engine` to `site.Params.map.provider`
- Use provider name (string) rather than integer
- For built-in search, provider is "wowchemy"
- For leaflet maps, the provider is "mapnik" or "mapbox"
2021-02-09 21:19:42 +00:00
George Cushen 50d3d41e9e feat: dispatch wcThemeChange event to support themeable user plugins
See https://discord.com/channels/722225264733716590/742863504515793149/807370581611511858
2021-02-05 22:48:25 +00:00
George Cushen aa1071adfc feat: support site.Params.marketing.google_optimize
Also:

- refactor Bootstrap JS out of wowchemy.js for easier maintenance
- refactor lengthy env checks to hugo.IsProduction
- refactor window.PlotlyConfig from inline JS to the init script
- no longer prevent loading GA if GTM provided, in case user wants both
2021-02-05 20:30:40 +00:00
George Cushen 5072eddcc1 feat: add Wowchemy CMS module 2021-02-03 20:32:25 +00:00
George Cushen 76478cb4a5 refactor: move test/ and yarn to repo root 2021-02-03 20:14:43 +00:00
George Cushen 3f1c4b4df2 refactor: move test/ and yarn to repo root
Also lint and format entire repo, beyond just wowchemy/ dir

URL encode `(` and `)` in `[#MadeWithWowchemy](...(..)...)` in Readme.md for Prettier
2021-02-03 20:11:16 +00:00
George Cushen 9bbf6fa2a6 feat: support Params.marketing.google_site_verification
Also trial self-closing tags over void tags as Prettier doesn't support void tags: https://github.com/prettier/prettier/issues/5246
2021-02-02 23:55:30 +00:00
George Cushen 3b32a8188f feat(style): dynamically theme SVGs
And refactor HL shortcode to use semantic <mark>
2021-02-02 23:45:20 +00:00
Tony Lam 995d2181a0 i18n: add Finnish (fi) address format (#2135) 2021-02-01 13:16:02 +00:00
Prof. Lorenz 1dae5a2300 i18n: add Israel (il) address format (#2133) 2021-01-31 15:23:09 +00:00
George Cushen 4ac1c6aa1a docs: link to 中文 2021-01-27 22:57:30 +00:00
George Cushen 9e984eca83 feat(security): add Referrer-Policy
Also, support multi-line CSP and Permissions policy
2021-01-27 17:56:25 +00:00
George Cushen 64b7d5189b fix(style): consistency across landing section breakpoints
Fix #2123
2021-01-26 21:46:37 +00:00
George Cushen c15f621515 fix(style): consistency across landing section breakpoints
Fix #2123
2021-01-26 17:44:47 +00:00
George Cushen 393b19c76f feat(security): add support for Permissions-Policy
To use, set Params.security.permissions.policy
2021-01-26 01:01:45 +00:00
rodrigoalcarazdelaosa 7dbc1f73ed feat: reduce apple-touch-icon size
Trade off Hugo build time rather than re-use existing standard icon sizes.
2021-01-23 18:04:13 +00:00
Geo 69b7e22be8 ci: add codeQL 2021-01-23 02:49:52 +00:00
rodrigoalcarazdelaosa bc942ec48b feat(i18n): translate "authors" label in search results (#2115)
For non-English sites using the built-in search with published author profile pages
2021-01-23 01:25:26 +00:00
Alessandro Samuel-Rosa 6992449564 feat(i18n): add Brazil (pt-br) address format (#2118) 2021-01-23 01:17:11 +00:00
George Cushen e0ae7c979c chore: bump version 2021-01-20 02:52:05 +00:00
George Cushen cbf15cd470 fix(slides): enable menu by default 2021-01-20 01:34:24 +00:00
George Cushen 6c7237fc0a feat(cms): add slides editor
Also,
- filter out archive pages
- add `squash_merges`
- convert deprecated valueType to value_type
2021-01-20 01:03:37 +00:00
George Cushen 2d515e5fa5 feat(netlify): add security headers + configurable CSP
Adds some default security headers.

CSP is configurable via Params.security.csp.policy (string) and Params.security.csp.report_only (boolean).

To enable, add `headers` to config.toml > outputs > home

Dedicated Netlify redirects file can also now be generated from front matter `aliases` by adding `redirects` to config.toml > outputs > home, and `disableAliases = true` to config.toml.
2021-01-20 00:12:13 +00:00
koutbo6 de6860b8b3 feat(slides): upgrade reveal.js from v3.8.0 to v4.1.0 (#2018) 2021-01-19 23:22:34 +00:00
George Cushen 9f5c626c8f fix: show button links in listings irrespective of Type
Hugo cannot yet understand more than one return statement.

See https://discord.com/channels/722225264733716590/742863504515793149/800107285246246993
2021-01-16 23:49:44 +00:00
George Cushen b6dc6d8777 feat: show button links in listings irrespective of Type
Extend scope to include Portfolio's Card view.
2021-01-16 22:42:00 +00:00
George Cushen 2b9041dc87 feat: show button links in listings irrespective of Type
For example, if a blog post has an attachment, it will now be linked in the listing as well as in its page header.

May also reduce excess spacing by preventing empty attachment DIV in the case of no attachments/buttons since it now checks if a page has buttons.
2021-01-16 20:48:15 +00:00
George Cushen d4ecdca0eb feat: show button links in listings irrespective of Type
For example, if a blog post has an attachment, it will now be linked in the listing as well as in its page header.

May also reduce excess spacing by preventing empty attachment DIV in the case of no attachments/buttons since it now checks if a page has buttons.
2021-01-16 20:24:05 +00:00
George Cushen 273405e59b refactor: modularise styles + fix more style lint issues 2021-01-14 21:01:41 +00:00
George Cushen ac4b4e3157 fix: style lint issues 2021-01-13 21:27:12 +00:00
George Cushen f1da2c5ca8 feat: book menu - link to book of books if exists
Example: `courses/learn-x/` will have a new item added to the book menu to link back to `courses/` whereas a site with just a first-level book e.g. `docs/` won't see any change to the menu.
2021-01-11 23:53:50 +00:00
George Cushen 92707a1a46 fix: multilingual search broke
Fix recent refactor that migrated to Hugo's best practice of js.Build.

js.Build was performing excessive caching, only running the pipeline once even though the pipeline parameters changed for each multilingual site.
2021-01-11 23:05:13 +00:00
George Cushen b0ffb4ddc7 feat(widget): allow to constrain Portfolio by set of tags 2021-01-11 22:14:58 +00:00
George Cushen 9872428a3f feat(shortcode): show summaries by default in list_children 2021-01-11 20:53:49 +00:00
George Cushen 362cb1510b feat: add CSS postprocessing support
Enabled with env `WC_POST_CSS="true"`
2021-01-10 17:23:17 +00:00
George Cushen 468d327370 feat(shortcode): make in-page ToC collapsable
Useful for long pages with large ToCs and/or on small screens.

Also add `hide_on` and `show_on` options accepting Bootstrap responsive breakpoints.

Useful for setting `{{< toc hide_on="xl" >}}` in conjunction with Book layout which only shows right sidebar ToC on XL screens and above.
2021-01-09 20:59:42 +00:00
George Cushen a4bc42feb6 refactor: lint JS
Follows on from d18b2c9def
2021-01-09 19:53:11 +00:00
George Cushen e233094d2c Revert "refactor: format code"
This reverts commit 067b2a7f

Github Action didn't pick up ignored file list.
2021-01-09 19:51:56 +00:00
George Cushen 9c997e60d7 ci: disable format job
As it's not picking up the ignored list
2021-01-09 19:50:24 +00:00
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