Skip to content

Commit

Permalink
Fix global header links
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Mar 1, 2024
1 parent 8901c28 commit 378273d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,26 @@ Standard.args = {
},
],
navigation: [
{ text: "Visit", href: "www.nationalarchives.gov.uk/about/visit-us/" },
{
text: "Visit",
href: "https://www.nationalarchives.gov.uk/about/visit-us/",
},
{
text: "What's on",
href: "www.nationalarchives.gov.uk/about/visit-us/whats-on/",
href: "https://www.nationalarchives.gov.uk/about/visit-us/whats-on/",
},
{
text: "Explore the collection",
href: "https://beta.nationalarchives.gov.uk/explore-the-collection/",
},
{
text: "Using the archive",
href: "www.nationalarchives.gov.uk/help-with-your-research/",
href: "https://www.nationalarchives.gov.uk/help-with-your-research/",
},
{ text: "Learn", href: "www.nationalarchives.gov.uk/education/" },
{ text: "Learn", href: "https://www.nationalarchives.gov.uk/education/" },
{
text: "Professional guidance and services",
href: "www.nationalarchives.gov.uk/professional-guidance-and-services/",
href: "https://www.nationalarchives.gov.uk/professional-guidance-and-services/",
},
],
classes: "tna-global-header--demo",
Expand Down Expand Up @@ -136,23 +139,26 @@ Medium.args = {
},
],
navigation: [
{ text: "Visit", href: "www.nationalarchives.gov.uk/about/visit-us/" },
{
text: "Visit",
href: "https://www.nationalarchives.gov.uk/about/visit-us/",
},
{
text: "What's on",
href: "www.nationalarchives.gov.uk/about/visit-us/whats-on/",
href: "https://www.nationalarchives.gov.uk/about/visit-us/whats-on/",
},
{
text: "Explore the collection",
href: "https://beta.nationalarchives.gov.uk/explore-the-collection/",
},
{
text: "Using the archive",
href: "www.nationalarchives.gov.uk/help-with-your-research/",
href: "https://www.nationalarchives.gov.uk/help-with-your-research/",
},
{ text: "Learn", href: "www.nationalarchives.gov.uk/education/" },
{ text: "Learn", href: "https://www.nationalarchives.gov.uk/education/" },
{
text: "Professional guidance and services",
href: "www.nationalarchives.gov.uk/professional-guidance-and-services/",
href: "https://www.nationalarchives.gov.uk/professional-guidance-and-services/",
},
],
classes: "tna-global-header--demo",
Expand Down Expand Up @@ -203,23 +209,26 @@ MediumCollapsed.args = {
},
],
navigation: [
{ text: "Visit", href: "www.nationalarchives.gov.uk/about/visit-us/" },
{
text: "Visit",
href: "https://www.nationalarchives.gov.uk/about/visit-us/",
},
{
text: "What's on",
href: "www.nationalarchives.gov.uk/about/visit-us/whats-on/",
href: "https://www.nationalarchives.gov.uk/about/visit-us/whats-on/",
},
{
text: "Explore the collection",
href: "https://beta.nationalarchives.gov.uk/explore-the-collection/",
},
{
text: "Using the archive",
href: "www.nationalarchives.gov.uk/help-with-your-research/",
href: "https://www.nationalarchives.gov.uk/help-with-your-research/",
},
{ text: "Learn", href: "www.nationalarchives.gov.uk/education/" },
{ text: "Learn", href: "https://www.nationalarchives.gov.uk/education/" },
{
text: "Professional guidance and services",
href: "www.nationalarchives.gov.uk/professional-guidance-and-services/",
href: "https://www.nationalarchives.gov.uk/professional-guidance-and-services/",
},
],
collapseOnMedium: true,
Expand Down Expand Up @@ -258,23 +267,26 @@ Mobile.args = {
},
],
navigation: [
{ text: "Visit", href: "www.nationalarchives.gov.uk/about/visit-us/" },
{
text: "Visit",
href: "https://www.nationalarchives.gov.uk/about/visit-us/",
},
{
text: "What's on",
href: "www.nationalarchives.gov.uk/about/visit-us/whats-on/",
href: "https://www.nationalarchives.gov.uk/about/visit-us/whats-on/",
},
{
text: "Explore the collection",
href: "https://beta.nationalarchives.gov.uk/explore-the-collection/",
},
{
text: "Using the archive",
href: "www.nationalarchives.gov.uk/help-with-your-research/",
href: "https://www.nationalarchives.gov.uk/help-with-your-research/",
},
{ text: "Learn", href: "www.nationalarchives.gov.uk/education/" },
{ text: "Learn", href: "https://www.nationalarchives.gov.uk/education/" },
{
text: "Professional guidance and services",
href: "www.nationalarchives.gov.uk/professional-guidance-and-services/",
href: "https://www.nationalarchives.gov.uk/professional-guidance-and-services/",
},
],
classes: "tna-global-header--demo",
Expand Down
18 changes: 12 additions & 6 deletions tasks/global-header/generate-global-header-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const globalHeaderHTML = nunjucks
.renderString(globalHeaderComponentNunjucks, {
params: {
logo: {
href: "https://nationalarchives.gov.uk/",
href: "https://www.nationalarchives.gov.uk/",
},
topNavigation: [
{
Expand All @@ -33,23 +33,29 @@ const globalHeaderHTML = nunjucks
// },
],
navigation: [
{ text: "Visit", href: "www.nationalarchives.gov.uk/about/visit-us/" },
{
text: "Visit",
href: "https://www.nationalarchives.gov.uk/about/visit-us/",
},
{
text: "What's on",
href: "www.nationalarchives.gov.uk/about/visit-us/whats-on/",
href: "https://www.nationalarchives.gov.uk/about/visit-us/whats-on/",
},
{
text: "Explore the collection",
href: "https://beta.nationalarchives.gov.uk/explore-the-collection/",
},
{
text: "Using the archive",
href: "www.nationalarchives.gov.uk/help-with-your-research/",
href: "https://www.nationalarchives.gov.uk/help-with-your-research/",
},
{
text: "Learn",
href: "https://www.nationalarchives.gov.uk/education/",
},
{ text: "Learn", href: "www.nationalarchives.gov.uk/education/" },
{
text: "Professional guidance and services",
href: "www.nationalarchives.gov.uk/professional-guidance-and-services/",
href: "https://www.nationalarchives.gov.uk/professional-guidance-and-services/",
},
],
},
Expand Down

0 comments on commit 378273d

Please sign in to comment.