Skip to content

Create branded versions of examples#4635

Merged
domoscargin merged 4 commits into
brand-mvp-guidancefrom
bk-branded-code
Apr 24, 2025
Merged

Create branded versions of examples#4635
domoscargin merged 4 commits into
brand-mvp-guidancefrom
bk-branded-code

Conversation

@domoscargin
Copy link
Copy Markdown
Contributor

@domoscargin domoscargin commented Apr 22, 2025

What

  • Adds a rebrand property to template frontmatter
  • If this property is true, during build we create a duplicate of that file named branded.njk
  • During build, we run metalsmith/in-place and metalsmith/layouts on the existing files as normal
  • Then, we run each on the branded files, using a Nunjucks environment with the govukRebranded global
  • Adds rebrand assets to build

@domoscargin domoscargin linked an issue Apr 22, 2025 that may be closed by this pull request
4 tasks
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 22, 2025

You can preview this change here:

Name Link
🔨 Latest commit 207be33
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/680949da5c7fa80008c622bb
😎 Deploy Preview https://deploy-preview-4635--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@domoscargin domoscargin linked an issue Apr 23, 2025 that may be closed by this pull request
2 tasks
@domoscargin domoscargin force-pushed the bk-presenting-branded-examples branch 3 times, most recently from 3bdebde to 7cb988e Compare April 23, 2025 19:52
Base automatically changed from bk-presenting-branded-examples to brand-mvp-guidance April 23, 2025 20:01
- Check for `rebrand: true` frontmatter property
- Duplicate `index.njk` file as `branded.njk`
- Run in-place and layouts on the original files, and the branded files
- For the branded files, use the rebrand Nunjucks global
Copy link
Copy Markdown
Contributor

@owenatgov owenatgov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks grand to me 👍🏻

@domoscargin domoscargin merged commit 83b3e54 into brand-mvp-guidance Apr 24, 2025
13 checks passed
@domoscargin domoscargin deleted the bk-branded-code branch April 24, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Present rebranded examples on website Create all coded examples for rebranded components

2 participants