Skip to content

Commit

Permalink
Merge pull request #133 from alphagov/feat/add-custom-page-title-vari…
Browse files Browse the repository at this point in the history
…able

Add a custom title value for homepage
  • Loading branch information
nnagewad authored Dec 10, 2024
2 parents dfa1053 + d49b4c2 commit e6b8c9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _includes/layouts/homepage.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
title: {
html: title | smart
} if title,
title: {
html: customPageTitle | smart
} if customPageTitle,
description: {
html: description | markdown("inline") | noOrphans
} if description,
Expand Down
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
homepage: true
layout: homepage
title: Design pages that help users find information and services on GOV.UK
title: Home
customPageTitle: Design pages that help users find information and services on GOV.UK
description: The GOV.UK Publishing Design Guide is an extension of the GOV.UK Design System, aimed at people working in the GOV.UK programme at the Government Digital Service.
image:
src: /assets/images/homepage.svg
Expand Down

0 comments on commit e6b8c9f

Please sign in to comment.