455 Commits
Author SHA1 Message Date
Federico Agostini f55ff594c0 fix: shortcode context for v2 blocks (#2919)
Shortcodes in the new block system do not get access to the correct .Page variable (see #2918 ). The problem is the use of markdownify function to parse $block.content.text, since it actually is an alias to site.Home.RenderString since v 0.93.0 (see gohugoio/hugo#9959 (comment)).

This causes the shortcodes to always get the Homepage as .Page variable. The fix is to substitute markdownify with $page.RenderString, which gives the correct context.

Fixes #2918
2023-02-13 20:03:01 +00:00
Samuel Teuber 549d2cd126 fix(style): table class name in fixHugoOutput (#2897)
addClass must be called with class name only instead of '.table' as class name
2022-12-27 23:33:04 +00:00
George Cushen 943f2eb3ea feat: blocks v2: background.video.path -> background.video.filename 2022-12-27 23:31:36 +00:00
George Cushen 58b270a3e1 feat: gallery detection in v2 block system 2022-11-27 21:56:19 +00:00
George Cushen 41418661b6 feat: migrate more blocks to v2 block system 2022-11-27 21:17:34 +00:00
George Cushen 7a3d11a2a5 feat: migrate more blocks to v2 block system 2022-11-27 21:13:40 +00:00
George Cushen 712c955024 feat: update block config
For arrival of v2 block system.

Close #2883
2022-11-26 20:50:09 +00:00
George Cushen 45466f563a feat: add support for page-specific headers (navbars)
Both site header and footer now use dynamic block system.

E.g. for custom header at `layouts/partials/components/headers/simple.html:

```
---
header:
  navbar:
    block: simple
---
```

Also, Params.footer.widget changed to Params.footer.block
2022-11-06 16:38:05 +00:00
George Cushen a29d4ed136 feat: add support for Hugo v0.101.0 breaking changes
Hugo v0.101.0 had breaking changes to relURL and relLangURL

See https://github.com/gohugoio/hugo/issues/9994
See https://discourse.gohugo.io/t/changing-the-title-link/41239/5
2022-11-06 15:59:39 +00:00
Robrecht Cannoodt ff4b7b1193 fix: legacy support for custom_js/custom_head (#2866)
Hooks replaced custom_js.html  and custom_head.html

However, custom_js/custom_head remain supported for legacy purposes.

Despite commit acd74954b5 mentioning that the custom.html is still supported for now, I don't think it's being picked up at the moment. This PR resolves this issue.
2022-10-29 15:31:46 +01:00
George Cushen 5dcefaa0c5 feat(blocks-v2): add Collection, Contact, Tag Cloud 2022-10-25 22:48:55 +01:00
George Cushen 0b624e2eff refactor: move old widgets to v1/ dir
Prevent conflicts with new v2 landing page block system

See #2049
2022-10-24 23:05:17 +01:00
George Cushen ad46623201 feat: add landing pages (aka widget pages v2)
Closes #2049
2022-10-24 22:43:04 +01:00
George Cushen ed6595aae6 fix: algolia integration when common queries disabled 2022-10-22 22:10:19 +01:00
George Cushen 3349024c90 fix: load community block/widget styles
From `assets/scss/blocks/<unique-block-name>.scss`
2022-10-04 19:25:30 +01:00
George Cushen 931c901862 feat: load community block/widget styles
From `assets/scss/blocks/<unique-block-name>.scss`
2022-10-02 21:01:12 +01:00
Anirban Basu 82a4452e6b feat: display more specific warning if theme variation doesn't exist (#2843)
Based on the suggestion at https://discord.com/channels/722225264733716590/1024935456313450506/1025050134083543152
2022-10-02 18:51:29 +01:00
George Cushen 39a618761a feat: standardise blocks
- rename widgets/ folder to blocks/
- rename Blank block to Markdown
- rename Pages block to Collection
- replace Featured block with Collection block, filtered with `featured_only: true`
- standardise block variables to .wcPage and .wcBlock
- check requested block exists before loading
- refactor block parser to parse_block.html
2022-10-02 17:33:18 +01:00
George Cushen 537ba53461 feat: support SVG as section background 2022-10-02 15:45:24 +01:00
George Cushen 848a7c6a2a feat: add support for View wrappers
E.g. a custom view (views/custom.html) can be wrapped with:

views/custom-start.html
views/custom-end.html

This allows for custom grid-based views (cards, etc.)
2022-09-28 23:19:28 +01:00
George Cushen 460f619542 chore: bump version 2022-09-24 13:18:32 +01:00
George Cushen 173224079f fix: mindmap first item rendered indented 2022-09-24 13:17:32 +01:00
George Cushen 20fdc04606 feat(slides): remove dependency on Wowchemy Bootstrap module 2022-09-24 12:57:01 +01:00
Federico Agostini 342a418071 build: preserve comments in language pack synchroniser (#2831)
By migrating from PyYAML to Ruamel for YAML parsing
2022-09-17 15:56:54 +01:00
Anirban Basu c85924ba3e fix: use absolute path in cookie_consent.html (#2804)
Adding `site.GetPage /privacy.md` to reflect the absolute path to `privacy.md`, as per the Hugo documentation for GetPage.

This should force Hugo to only link to a `/privacy.md` page at the root of the site and prevent Hugo searching for unrelated pages with `privacy` in the name (as it currently does, if for example you also have a /tags/privacy/ page).

Note that currently there's a Hugo bug where Hugo does not respect absolute paths in `site.GetPage`. Hence, Hugo can still return other unrelated pages (for example any other pages that have `privacy....` in the filename) until this bug is fixed: https://github.com/gohugoio/hugo/issues/10243
2022-09-17 11:04:33 +01:00
George Cushen 71f51091fb feat: add Docsearch to 404 page 2022-09-16 19:43:46 +01:00
Pedro Ortiz Suarez 708b38cecc feat: update Academicons to v1.9.2 (#2833) 2022-09-16 19:42:43 +01:00
Wei-Tse Hsu 5191e384bd feat: add GitHub Discussions as a comment provider via Giscus (#2830) 2022-09-16 19:41:38 +01:00
George Cushen c40f8ca503 feat: add support for different Footer Widgets
For example, params.yaml:

```
footer:
  widget: mega
```

loads `layouts/partials/components/footers/mega.html`
2022-09-12 22:40:50 +01:00
George Cushen c36731acb3 fix: docs <article> wrap content only
Prevents Docsearch picking up Feedback Widget text etc. in search results
2022-09-07 22:44:54 +01:00
George Cushen 0f2261995e fix: dismiss Announcement Bar 2022-09-07 22:32:42 +01:00
George Cushen 1174c8564f feat: add Announcement Bar feature
In front matter:

```
announcement:
  text: ''Hello World!️'
```
2022-09-07 22:07:54 +01:00
George Cushen 769ac0e624 feat: add support for Algolia Docsearch
In params.yaml:

```
  search:
    provider: docsearch
    docsearch:
      app_id: ''
      api_key: ''
      index_name: ''
```
2022-09-07 21:51:28 +01:00
George Cushen 171a4dd85f refactor: import new wowchemy-core/seo modules 2022-09-07 21:39:52 +01:00
George Cushen 8cd28ca07f refactor: move utilities and seo to wowchemy-core/seo modules 2022-09-07 21:29:32 +01:00
George Cushen 18ac0b42a8 feat: align with .Params.image for featured/cover image 2022-09-07 21:22:53 +01:00
Federico Agostini 1fe36f5374 feat: load featured image from media library (#2799)
Adds support for loading featured image from media library via `image.filename` param as an alternative to placing a `featured.*` image in the page folder.

Supports setting a default feature image for all pages via Hugo Cascade in Hugo Config.

Supports featured image reuse without duplicating the image within each page folder.
2022-09-02 19:58:04 +01:00
Niskala Airaha 56994f726e i18n: add Malay translations (Roman & Jawi) (#2808) 2022-08-30 18:47:45 +01:00
George Cushen 62cd90d0e0 fix: page feedback widget, ga -> gtag 2022-08-29 23:02:36 +01:00
George Cushen 875a3e5fa6 feat: add page feedback widget
Requires Google Analytics and production env.

New front-matter param for Book layout:

feedback: true
2022-08-28 00:55:24 +01:00
Federico Agostini 51cb8663ba docs: add comments to document shortcode params (#2796) 2022-08-27 23:25:35 +01:00
Anirban Basu 1ef73475fc i18n: add Bengali language pack (#2802) 2022-08-26 13:03:25 +01:00
Stefano Cecere 8eb59a8a45 i18n: update it.yaml (#2803) 2022-08-26 12:47:04 +01:00
George Cushen 005e361174 feat: add support for more complex filters in Portfolio widget
See https://isotope.metafizzy.co/filtering.html

E.g. filter on multiple tags:

```
  filter_button:
    - name: All
      tag: '*'
    - name: Machine Learning
      tag: ML
    - name: Computer Vision
      tag: CV
    - name: NLP
      tag: NLP
    - name: CV or NLP
      filter: '.js-id-cv, .js-id-nlp'
    - name: ML and NLP
      filter: '.js-id-ml.js-id-nlp'
```
2022-08-25 20:28:05 +01:00
George Cushen d9b6d28562 fix: mindmap when using Hugo --minify 2022-08-21 11:37:46 +01:00
George Cushen ef8f0a96f3 feat: add support for mindmaps 2022-08-21 10:55:47 +01:00
George Cushen b49528cf1e refactor: move Reveal.JS plugin to its own module
```
module:
  imports:
    - path: github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal
```

See #2792
2022-08-15 18:06:37 +01:00
George Cushen 22e2a7cf74 fix: encoding of quotes in Page Sharer URL
Resolves merge conflicts in #2726

Fix #2726
2022-08-14 20:03:40 +01:00
rodrigoalcarazdelaosa 24e842c9af feat: upgrade FontAwesome from 6.0.0 to 6.1.2 (#2788) 2022-08-14 13:22:38 +01:00
Mohamamd AlMarzouq 76c48517a7 fix: Mermaid diagram rendering in Reveal slides (#2765)
See https://github.com/hakimel/reveal.js/issues/2863#issuecomment-1107444425
2022-08-14 13:08:18 +01:00