Skip to content

Commit

Permalink
Merge pull request #855 from CodeForAfrica/feat/civicsignalblog_seo
Browse files Browse the repository at this point in the history
@/civicsignalblog SEO
  • Loading branch information
kilemensi authored Aug 22, 2024
2 parents 6338ab6 + b993f39 commit 5b449f4
Show file tree
Hide file tree
Showing 55 changed files with 2,565 additions and 3,158 deletions.
5 changes: 2 additions & 3 deletions apps/civicsignalblog/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
MIGRATIONS_DIR=./migrations
NEXT_PUBLIC_APP_DIRECTORY="apps/civicsignal/"
NEXT_PUBLIC_APP_NAME="Code for Africa"
NEXT_PUBLIC_APP_NAME="Research | CivicSignal"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID="G-NXX5DBEHXC"
NEXT_PUBLIC_IMAGE_DOMAINS=""
NEXT_PUBLIC_IMAGE_UNOPTIMIZED="true"
NEXT_PUBLIC_VERCEL_URL=${VERCEL_URL}
NEXT_PUBLIC_VERCEL_URL=$VERCEL_URL
PAYLOAD_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL
SENTRY_ENVIRONMENT=local
SENTRY_ORG=code-for-africa
Expand Down
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.10
FROM codeforafrica/codeforafrica-ui:0.1.11
3 changes: 2 additions & 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.10",
"version": "0.1.11",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the (temporary) CivicSignal blog",
Expand Down Expand Up @@ -45,6 +45,7 @@
"@mui/material": "^5.16.6",
"@mui/utils": "^5.16.6",
"@next/env": "^14.2.5",
"@next/third-parties": "^14.2.5",
"@payloadcms/bundler-webpack": "^1.0.7",
"@payloadcms/db-mongodb": "^1.7.1",
"@payloadcms/live-preview": "^0.2.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/civicsignalblog/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default buildConfig({
}),
seo({
collections: ["pages", "posts"],
globals: [],
globals: ["settings-site"],
uploadsCollection: "media",
generateTitle: ({ doc }: any) => doc?.title?.value as string,
generateURL: ({ doc }: any) =>
Expand Down
Binary file modified apps/civicsignalblog/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/civicsignalblog/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/civicsignalblog/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/civicsignalblog/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/civicsignalblog/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/civicsignalblog/public/favicon.ico
Binary file not shown.
Binary file modified apps/civicsignalblog/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.
Binary file modified apps/civicsignalblog/public/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions apps/civicsignalblog/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# ChatGPT-User
User-agent: ChatGPT-User
Disallow: /

# Amazonbot
User-agent: Amazonbot
Disallow: /

# Applebot
User-agent: Applebot
Disallow: /

# PerplexityBot
User-agent: PerplexityBot
Disallow: /

# Bytespider
User-agent: Bytespider
Disallow: /

# CCBot
User-agent: CCBot
Disallow: /

# ClaudeBot
User-agent: ClaudeBot
Disallow: /

# Diffbot
User-agent: Diffbot
Disallow: /

# FacebookBot
User-agent: FacebookBot
Disallow: /

# Google-Extended
User-agent: Google-Extended
Disallow: /

# GPTBot
User-agent: GPTBot
Disallow: /

# Applebot-Extended
User-agent: Applebot-Extended
Disallow: /

# omgili
User-agent: omgili
Disallow: /

# anthropic-ai
User-agent: anthropic-ai
Disallow: /

# Claude-Web
User-agent: Claude-Web
Disallow: /

# cohere-ai
User-agent: cohere-ai
Disallow: /


User-agent: magpie-crawler
Disallow: /

# Generatedy by RoboShield (https://roboshield.trustlab.africa)

131 changes: 96 additions & 35 deletions apps/civicsignalblog/public/safari-pinned-tab.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: 4 additions & 4 deletions apps/civicsignalblog/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Code for Africa",
"short_name": "CfA",
"name": "CivicSignal Research",
"short_name": "CivicSignal",
"icons": [
{
"src": "/android-chrome-192x192.png",
Expand All @@ -13,7 +13,7 @@
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"theme_color": "#022069",
"background_color": "#022069",
"display": "standalone"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`<ArticleCard /> renders unchanged 1`] = `
<div>
<div
class="MuiPaper-root MuiPaper-outlined MuiCard-root css-k4n4sx-MuiPaper-root-MuiCard-root"
class="MuiPaper-root MuiPaper-outlined MuiCard-root css-1omx1yq-MuiPaper-root-MuiCard-root"
/>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`<ArticleGrid /> renders unchanged 1`] = `
class="MuiStack-root css-kbcct1-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-1tgwtox-MuiFormControl-root-MuiTextField-root"
class="MuiFormControl-root MuiTextField-root css-1w88xu6-MuiFormControl-root-MuiTextField-root"
>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedEnd css-1wq2s8-MuiInputBase-root-MuiOutlinedInput-root"
Expand Down
Loading

0 comments on commit 5b449f4

Please sign in to comment.