Commit graph

319 commits

Author SHA1 Message Date
George Cushen
f38f65d011 fix: gallery lightbox doesn't always load
Lightbox may not load in case of gallery shortcode contained within `text` field of a landing page block (v2 blocks).

Fix #2972
2023-08-12 17:33:44 +01:00
Stefano Kowalke
f2a7bd1229
refactor: remove JQuery from parts of Search JS (#2970)
See #1402
2023-08-11 19:01:49 +01:00
Aki Ariga
15ee0927a7
i18n: improve Japanese (JA) translation (#2974)
Updated some of untranslated Japanese in i18n yaml.
2023-08-07 18:43:26 +01:00
George Cushen
2342b0c39a fix: 1c09422 error calling isset
error calling isset: calling IsSet with unsupported type "invalid" (<nil>) will always return false

See 1c094227ec (commitcomment-123412561)
2023-08-06 07:59:06 +01:00
Federico Agostini
1c094227ec
feat: update Headroom implementation to support recent Hugo versions (#2950)
It has been reported that recent Hugo versions broke user's configuration of Headroom JS via the `header.on_scroll` option.

With this PR, Headroom JS configuration is working again.

Fixes #2935
2023-07-30 19:02:22 +01:00
Christian Brueffer
92cc5a2710
feat(blocks>slider): only show prev/next arrows when more than one slide (#2949) 2023-06-18 23:14:59 +01:00
s-team-FZI
1b9f1397c1
i18n: update DE (#2947)
Improve translation of Thesis to Abschlussarbeit #2947
2023-05-20 14:41:02 +01:00
Federico Agostini
ecde200961
docs: fix code comment (#2939) 2023-04-27 21:14:56 +01:00
George Cushen
951c7b6f70 feat: add Biography block to v2 block collection
To use, reference as: `about.biography`

Close #2925
2023-04-20 21:57:46 +01:00
rodrigoalcarazdelaosa
c329e54a1e
feat: update JS dependencies to their latest versions (#2934) 2023-04-20 21:35:43 +01:00
George Cushen
ca2775cd57 fix: migrate Research Group template from v1 to v2 blocks (#2914) 2023-04-18 20:47:07 +01:00
Federico Agostini
a4e5661b88
templates: migrate Research Group template from v1 to v2 blocks (#2914) 2023-04-18 20:32:26 +01:00
Ted Magaoay
9ea080c354
fix: gallery images overlapping in latest Chrome version (#2930) 2023-04-14 20:28:29 +01:00
JOnathan duMonT
a7f7d7aa46
i18n: improve French (FR) translation (#2928) 2023-03-23 17:50:00 +00:00
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