Skip to content

Commit

Permalink
Merge pull request #3956 from owid/change-footer-url-capitalization
Browse files Browse the repository at this point in the history
Change URLs from OurWorldInData to OurWorldinData in chart footers
  • Loading branch information
edomt authored Sep 13, 2024
2 parents a8f9586 + dcc838a commit 0c91c50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class Footer<

const url = parseUrl(originUrl)
return `${url.hostname}${url.pathname}`
.replace("ourworldindata.org", "OurWorldInData.org")
.replace("ourworldindata.org", "OurWorldinData.org")
.replace(/\/$/, "") // remove trailing slash
}

Expand Down
2 changes: 1 addition & 1 deletion site/LongFormPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const LongFormPage = (props: {
const citationText = `${formatAuthors({
authors: citationAuthors,
requireMax: true,
})} (${citationPublishedYear}) - "${citationTitle}". Published online at OurWorldInData.org. Retrieved from: '${citationCanonicalUrl}' [Online Resource]`
})} (${citationPublishedYear}) - "${citationTitle}". Published online at OurWorldinData.org. Retrieved from: '${citationCanonicalUrl}' [Online Resource]`

const bibtex = `@article{owid${citationSlug.replace(/-/g, "")},
author = {${formatAuthors({
Expand Down
2 changes: 1 addition & 1 deletion site/gdocs/pages/GdocPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function GdocPost({
content.title ?? "",
publishedAt
)
const citationText = `${shortPageCitation} Published online at OurWorldInData.org. Retrieved from: '${`${BAKED_BASE_URL}/${slug}`}' [Online Resource]`
const citationText = `${shortPageCitation} Published online at OurWorldinData.org. Retrieved from: '${`${BAKED_BASE_URL}/${slug}`}' [Online Resource]`
const hasSidebarToc = content["sidebar-toc"]
const isDeprecated =
postType === OwidGdocType.Article &&
Expand Down

0 comments on commit 0c91c50

Please sign in to comment.