Skip to content

Commit

Permalink
Merge pull request #857 from CodeForAfrica/hotfix/civicsignalblog_rob…
Browse files Browse the repository at this point in the history
…oshield_seo_title_template

[Hotfix] SEO title template
  • Loading branch information
kilemensi authored Aug 22, 2024
2 parents ba79ef0 + ff8a781 commit 8a601b6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/civicsignalblog/contrib/dokku/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM codeforafrica/codeforafrica-ui:0.1.12
FROM codeforafrica/codeforafrica-ui:0.1.13
2 changes: 1 addition & 1 deletion apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "civicsignalblog",
"version": "0.1.12",
"version": "0.1.13",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the (temporary) CivicSignal blog",
Expand Down
3 changes: 1 addition & 2 deletions apps/civicsignalblog/src/lib/data/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function getPageSeoFromMeta(page, settings) {
const defaultTitle = settings.meta?.title || settings.title || site.name;
const title = page.meta?.title || page.title || defaultTitle;
// Dont't use template on homepage
const titleTemplate =
page.slug !== "index" ? defaultTitle && `%s | ${defaultTitle}` : null;
const titleTemplate = page.slug === "index" ? "%s" : `%s | ${defaultTitle}`;
const description =
page.meta?.description ||
settings.meta?.description ||
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roboshield",
"version": "0.1.11",
"version": "0.1.12",
"private": true,
"scripts": {
"build-server": "tsc --project tsconfig.server.json",
Expand Down
Binary file added apps/roboshield/public/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions apps/roboshield/src/lib/data/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export default function getPageSeoFromMeta(
const defaultTitle = settings.meta?.title || settings.title || site.name;
const title = page.meta?.title || page.title || defaultTitle;
// Dont't use template on homepage
const titleTemplate =
page.slug !== "index" ? defaultTitle && `%s | ${defaultTitle}` : null;
const titleTemplate = page.slug === "index" ? "%s" : `%s | ${defaultTitle}`;
const description =
page.meta?.description ||
settings.meta?.description ||
Expand Down

0 comments on commit 8a601b6

Please sign in to comment.