Skip to content

Commit

Permalink
Backmerge release 8.x-3.0-beta3 into dev branch (#718)
Browse files Browse the repository at this point in the history
Backmerge release 8.x-3.0-beta3 into dev branch
  • Loading branch information
hstandaert authored Aug 30, 2019
2 parents 587980b + cf4a4a1 commit 55b2f30
Show file tree
Hide file tree
Showing 13 changed files with 153 additions and 73 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All Notable changes to `digipolisgent/drupal_theme_gent-base`.

## [Unreleased]
## [8.x-3.0-beta3]

### Added

Expand Down Expand Up @@ -226,6 +226,7 @@ All Notable changes to `digipolisgent/drupal_theme_gent-base`.

* **Updated to gent_styleguide version 2.6.13**

[8.x-3.0-beta3]: https://github.com/StadGent/drupal_theme_gent-base/compare/8.x-3.0-beta2...8.x-3.0-beta3
[8.x-3.0-beta2]: https://github.com/StadGent/drupal_theme_gent-base/compare/8.x-3.0-beta1...8.x-3.0-beta2
[8.x-3.0-beta1]: https://github.com/StadGent/drupal_theme_gent-base/compare/8.x-3.0-alpha11...8.x-3.0-beta1
[8.x-3.0-alpha11]: https://github.com/StadGent/drupal_theme_gent-base/compare/8.x-3.0-alpha.10...8.x-3.0-alpha11
Expand Down
6 changes: 6 additions & 0 deletions gent_base.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ file:
source/js/file.bindings.js: {}
dependencies:
- core/drupal

breadcrumbs:
version: 1.x
js:
build/styleguide/js/breadcrumbs.functions-min.js: { minified: true }
source/js/breadcrumbs.bindings.js: {}
21 changes: 21 additions & 0 deletions source/js/breadcrumbs.bindings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @file
* Accordion component binding.
*/
(function (Drupal) {
'use strict';

Drupal.behaviors.gentBaseBreadcrumbs = {
attach: function (context, settings) {
if (!Breadcrumbs) { // eslint-disable-line no-undef
return;
}

var selected = document.querySelectorAll('.breadcrumb');
for (var i = selected.length; i--;) {
new Breadcrumbs(selected[i]); // eslint-disable-line no-undef
}

}
};
})(Drupal);
2 changes: 1 addition & 1 deletion source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
},
"private": true,
"dependencies": {
"gent_styleguide": "3.0.0-beta10"
"gent_styleguide": "latest"
}
}
111 changes: 75 additions & 36 deletions source/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ acorn@^6.0.7:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.1.tgz#7d25ae05bb8ad1f9b699108e1094ecd7884adc1f"
integrity sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==

ajv@^6.5.5, ajv@^6.9.1:
ajv@^6.5.5:
version "6.10.2"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52"
integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==
dependencies:
fast-deep-equal "^2.0.1"
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"

ajv@^6.9.1:
version "6.10.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.0.tgz#90d0d54439da587cd7e843bfb7045f50bd22bdf1"
integrity sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==
Expand Down Expand Up @@ -325,17 +335,17 @@ aws4@^1.8.0:
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f"
integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==

axe-core@^3.0.1, axe-core@^3.1.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-3.2.2.tgz#b06d6e9ae4636d706068843272bfaeed3fe97362"
integrity sha512-gAy4kMSPpuRJV3mwictJqlg5LhE84Vw2CydKdC4tvrLhR6+G3KW51zbL/vYujcLA2jvWOq3HMHrVeNuw+mrLVA==
axe-core@^3.0.1, axe-core@^3.3.1:
version "3.3.2"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-3.3.2.tgz#7baf3c55a5cf1621534a2c38735f5a1bf2f7e1a8"
integrity sha512-lRdxsRt7yNhqpcXQk1ao1BL73OZDzmFCWOG0mC4tGR/r14ohH2payjHwCMQjHGbBKm924eDlmG7utAGHiX/A6g==

axe-webdriverjs@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/axe-webdriverjs/-/axe-webdriverjs-2.2.0.tgz#4a63cd301b9b193207a03a3181e3be9cd6f15285"
integrity sha512-ckGIk3VaYkpXeESKSYYnPArSajlCVr+18wNFmBvms0H12thS5WaKK8nwtOzeN93SZB+EFn2M19VsGTy07XKxCw==
version "2.3.0"
resolved "https://registry.yarnpkg.com/axe-webdriverjs/-/axe-webdriverjs-2.3.0.tgz#92511fbce38624a57e1aa861dd8a3c73c6a3a972"
integrity sha512-AuUsX5OFTXOJ6reIKjtGay4O656n5G+m8MzhfL1SC8MHINBFFFn3Taucckn8+UZYJuTtNEobllSfiuPTHyKnSA==
dependencies:
axe-core "^3.1.2"
axe-core "^3.3.1"
babel-runtime "^6.26.0"
depd "^2.0.0"

Expand Down Expand Up @@ -1382,10 +1392,10 @@ gauge@~2.7.3:
strip-ansi "^3.0.1"
wide-align "^1.1.0"

gent_styleguide@3.0.0-beta10:
version "3.0.0-beta10"
resolved "https://registry.yarnpkg.com/gent_styleguide/-/gent_styleguide-3.0.0-beta10.tgz#cb06cf90ed93bc38237a7ba69a7a84b603e893b4"
integrity sha512-255/Pmz+dce7wmEeibwpXtrIhtaG4Xe2RlGXXGofwd1ScryKVzjOKi3KOWf8SYDLooi+ICwxHGophIje0+On1g==
gent_styleguide@latest:
version "3.0.0-beta11"
resolved "https://registry.yarnpkg.com/gent_styleguide/-/gent_styleguide-3.0.0-beta11.tgz#c61834e6adc8be9ceddf1811481aeab9435bad2e"
integrity sha512-KQq7jJQoTLKwxM2eUFc+VVVO5tlWC/7dzk+kIVRq0MtrkZKsFNFLJ/obTo6rSh3r8dA0iqwDzOOYOrwypy4lUg==
dependencies:
allietabs "^1.2.2"
baguettebox.js "^1.11.0"
Expand Down Expand Up @@ -1514,11 +1524,16 @@ glogg@^1.0.0:
dependencies:
sparkles "^1.0.0"

graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
graceful-fs@^4.0.0, graceful-fs@^4.1.11:
version "4.1.15"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00"
integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==

graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
version "4.2.2"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02"
integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==

gulp-axe-webdriver@^3.1.0:
version "3.1.3"
resolved "https://registry.yarnpkg.com/gulp-axe-webdriver/-/gulp-axe-webdriver-3.1.3.tgz#b01e4c4f13579e8096c3ffe5b975f7bb7c7c9cf5"
Expand Down Expand Up @@ -1689,9 +1704,9 @@ homedir-polyfill@^1.0.1:
parse-passwd "^1.0.0"

hosted-git-info@^2.1.4:
version "2.7.1"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047"
integrity sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==
version "2.8.4"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546"
integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==

http-basic@^2.5.1:
version "2.5.1"
Expand Down Expand Up @@ -2100,9 +2115,9 @@ jsprim@^1.2.2:
verror "1.10.0"

jszip@^3.1.3:
version "3.2.1"
resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.2.1.tgz#c5d32df7274042282b157efb16e522b43435e01a"
integrity sha512-iCMBbo4eE5rb1VCpm5qXOAaUiRKRUKiItn8ah2YQQx9qymmSAY98eyQfioChEYcVQLh0zxJ3wS4A0mh90AVPvw==
version "3.2.2"
resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.2.2.tgz#b143816df7e106a9597a94c77493385adca5bd1d"
integrity sha512-NmKajvAFQpbg3taXQXr/ccS2wcucR1AZ+NtyWp2Nq7HHVsXhcJFR8p0Baf32C2yVvBylFWVeKf+WI2AnvlPhpA==
dependencies:
lie "~3.3.0"
pako "~1.0.2"
Expand Down Expand Up @@ -2858,9 +2873,9 @@ promise@^7.1.1:
asap "~2.0.3"

psl@^1.1.24:
version "1.1.33"
resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.33.tgz#5533d9384ca7aab86425198e10e8053ebfeab661"
integrity sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==
version "1.3.0"
resolved "https://registry.yarnpkg.com/psl/-/psl-1.3.0.tgz#e1ebf6a3b5564fa8376f3da2275da76d875ca1bd"
integrity sha512-avHdspHO+9rQTLbv1RO+MPYeP/SzsCoxofjVnHanETfQhTJrmB0HlDoW+EiN/R+C0BZ+gERab9NY0lPN2TxNag==

pump@^2.0.0:
version "2.0.1"
Expand Down Expand Up @@ -2890,9 +2905,9 @@ punycode@^2.1.0:
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==

qs@^6.1.0:
version "6.7.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc"
integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==
version "6.8.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.8.0.tgz#87b763f0d37ca54200334cd57bb2ef8f68a1d081"
integrity sha512-tPSkj8y92PfZVbinY1n84i1Qdx75lZjMQYx9WZhnkofyxzw2r7Ho39G3/aEvSUdebxpnnM4LZJCtvE/Aq3+s9w==

qs@~6.5.2:
version "6.5.2"
Expand Down Expand Up @@ -3095,13 +3110,20 @@ resolve-url@^0.2.1:
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=

resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.4.0:
resolve@^1.1.6, resolve@^1.1.7, resolve@^1.4.0:
version "1.11.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e"
integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==
dependencies:
path-parse "^1.0.6"

resolve@^1.10.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==
dependencies:
path-parse "^1.0.6"

restore-cursor@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
Expand All @@ -3115,13 +3137,20 @@ ret@~0.1.10:
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==

rimraf@2.6.3, rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1:
rimraf@2.6.3, rimraf@^2.6.1:
version "2.6.3"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==
dependencies:
glob "^7.1.3"

rimraf@^2.2.8, rimraf@^2.5.4:
version "2.7.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
dependencies:
glob "^7.1.3"

run-async@^2.2.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
Expand All @@ -3136,7 +3165,12 @@ rxjs@^6.4.0:
dependencies:
tslib "^1.9.0"

safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
safe-buffer@^5.0.1, safe-buffer@^5.1.2:
version "5.2.0"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"
integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==

safe-buffer@^5.1.0, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
Expand Down Expand Up @@ -3175,7 +3209,12 @@ semver-greatest-satisfied-range@^1.1.0:
dependencies:
sver-compat "^1.5.0"

"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.5.0, semver@^5.5.1:
"semver@2 || 3 || 4 || 5":
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==

semver@^5.3.0, semver@^5.5.0, semver@^5.5.1:
version "5.7.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b"
integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==
Expand Down Expand Up @@ -3317,9 +3356,9 @@ spdx-expression-parse@^3.0.0:
spdx-license-ids "^3.0.0"

spdx-license-ids@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.4.tgz#75ecd1a88de8c184ef015eafb51b5b48bfd11bb1"
integrity sha512-7j8LYJLeY/Yb6ACbQ7F76qy5jHkp0U6jgBfJsk97bwWlVUnUWsAgpyaCvo17h0/RQGnQ036tVDomiwoI4pDkQA==
version "3.0.5"
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654"
integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==

split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
Expand Down Expand Up @@ -3724,9 +3763,9 @@ util-deprecate@~1.0.1:
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=

uuid@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==
version "3.3.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==

v8flags@^3.0.1:
version "3.1.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,16 @@
</div>

<div class="content__top">
<div class="figure-wrapper">
<figure>
<div class="image-wrapper" data-ratio="8:5">
{{ fake_teaser_image }}
</div>
</figure>
<div class="accolade-inverse bottom-left"></div>
</div>
{% spaceless %}
<div class="figure-wrapper">
<figure>
<div class="image-wrapper" data-ratio="8:5">
{{ fake_teaser_image }}
</div>
</figure>
<div class="accolade-inverse bottom-left"></div>
</div>
{% endspaceless %}
</div>
</article>

Expand Down
2 changes: 1 addition & 1 deletion templates/core/form/container--more-link.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
set classes = [
has_parent ? 'js-form-wrapper',
has_parent ? 'form-wrapper',
'show-more',
'grid__show-more',
]
%}
<div{{ attributes.addClass(classes) }}>{{ children }}</div>
5 changes: 4 additions & 1 deletion templates/core/navigation/breadcrumb.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
* - breadcrumb: Breadcrumb trail items.
*/
#}

{{ attach_library('gent_base/breadcrumbs') }}

{% if breadcrumb %}
<nav class="breadcrumb" aria-labelledby="system-breadcrumb">
<div class="content-container">
<h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
<ol class="breadcrumb no-style">
<ol class="no-style">
{% spaceless %}
{% for item in breadcrumb %}
<li>
Expand Down
14 changes: 8 additions & 6 deletions templates/custom/media/media--image--gallery-multiple.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
{% endif %}
>
{{ title_suffix.contextual_links }}
<figure>
<div class="image-wrapper" data-ratio="8:5">
{{ content.field_media_image }}
</div>
{% spaceless %}
<figure>
<div class="image-wrapper" data-ratio="8:5">
{{ content.field_media_image }}
</div>

{{ content.field_media_caption }}
</figure>
{{ content.field_media_caption }}
</figure>
{% endspaceless %}
</a>
2 changes: 1 addition & 1 deletion templates/custom/nodes/node--detail--layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
{% if content.field_documents|render|striptags|trim is not empty %}
{{ attach_library('gent_base/accordion') }}

<div class="document-box accordion">
<div class="documents accordion">
<h2>{{ 'Documents'|t }}</h2>
{{ content.field_documents }}
</div>
Expand Down
16 changes: 9 additions & 7 deletions templates/custom/nodes/node--hero-image.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@

{% block wrapper %}
{% if content|render is not empty %}
<figure class="hero">
<div class="image-wrapper" data-ratio="4:1">
{% block content %}
{{ content }}
{% endblock %}
</div>
</figure>
{% spaceless %}
<figure class="hero">
<div class="image-wrapper" data-ratio="4:1">
{% block content %}
{{ content }}
{% endblock %}
</div>
</figure>
{% endspaceless %}
{% endif %}
{% endblock %}
Loading

0 comments on commit 55b2f30

Please sign in to comment.