Skip to content

Commit

Permalink
Merge pull request #73 from uktrade/build/move-to-eleventy-plugin-6
Browse files Browse the repository at this point in the history
build(deps): move to govuk-eleventy-plugin v6.0.3
  • Loading branch information
michalc authored Jan 9, 2024
2 parents ffecf7a + 5286f9e commit 429fefe
Show file tree
Hide file tree
Showing 5 changed files with 582 additions and 291 deletions.
2 changes: 1 addition & 1 deletion docs/assets/dit-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/sass/_settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$govuk-font-family: system-ui, sans-serif;

// Our logo is 5px taller than the GOV.UK Crown that the design system is tailored for. But it's
// only sort of "peeking" beyond the edges so we don't allocate more space for it in the page.
// The X-GOVUK site doing a very similar thing with its logo I think for a similar reason
.dbt-header__logotype {
margin-bottom: -5px;
}
6 changes: 3 additions & 3 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ const fs = require('fs')
module.exports = function(eleventyConfig) {
// Register the plugin
eleventyConfig.addPlugin(govukEleventyPlugin, {
fontFamily: 'system-ui, sans-serif',
icons: {
shortcut: '/assets/dit-favicon.png'
},
header: {
organisationName: 'DBT',
organisationLogo: fs.readFileSync('./docs/assets/dit-logo.svg', {encoding: 'utf8'}),
logotype: {
html: fs.readFileSync('./docs/assets/dit-logo.svg', {encoding: 'utf8'})
},
productName: 'stream-unzip',
}
})
Expand Down
Loading

0 comments on commit 429fefe

Please sign in to comment.