Skip to content

Commit

Permalink
Revert "add more change to seo sitemap"
Browse files Browse the repository at this point in the history
This reverts commit e51a01b.
  • Loading branch information
thedaviddias committed Jul 28, 2022
1 parent e51a01b commit 68ffce2
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 196 deletions.
18 changes: 0 additions & 18 deletions next-sitemap.config.js

This file was deleted.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"check:types": "tsc -p tsconfig.json --noEmit --pretty",
"format": "prettier --write .",
"lint:write": "eslint . --ext js,ts,tsx --fix --max-warnings=0",
"prepare": "husky install",
"postbuild": "next-sitemap"
"prepare": "husky install"
},
"dependencies": {
"@tailwindcss/aspect-ratio": "^0.4.0",
Expand All @@ -26,7 +25,6 @@
"next": "12.2.3",
"next-mdx-remote": "^4.1.0",
"next-seo": "^5.5.0",
"next-sitemap": "^3.1.15",
"next-themes": "^0.2.0",
"next-translate": "^1.5.0",
"postcss": "^8.4.14",
Expand All @@ -40,10 +38,8 @@
},
"devDependencies": {
"@types/node": "18.6.1",
"@types/prettier": "^2.6.4",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"@types/rss": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"camel-case": "^4.1.2",
Expand All @@ -65,7 +61,6 @@
"rehype-prism-plus": "^1.4.2",
"rehype-slug": "^5.0.1",
"remark-gfm": "^3.0.1",
"rss": "^1.2.2",
"typescript": "4.7.4",
"unist-util-visit": "^4.1.0"
}
Expand Down
56 changes: 0 additions & 56 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed public/images/about-david-dias.jpeg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/config/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const baseUrl = process.env.NODE_ENV === 'production' ? 'https://thedavid
export const baseEmail = 'hello@thedaviddias.com'

const title = 'The David Dias | Developer and content creator'
const description = `Hey, I'm David Dias! Software Engineer based in Toronto / Canada. I love talking about code, technology, expatriation and life.`
const description = 'Discover'

export const defaultSEO = {
title,
Expand Down
29 changes: 0 additions & 29 deletions src/layouts/BaseLayout.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions src/middlewares.ts

This file was deleted.

25 changes: 15 additions & 10 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
import { NextPage } from 'next'
import { useRouter } from 'next/router'
import { NextSeo } from 'next-seo'
import useTranslation from 'next-translate/useTranslation'

import { PageHeader } from '@/components/PageHeader'
import { Container } from '@/components/Container'
import { H1 } from '@/components/Headings'

import { routes } from '@/config/routes'
import { BaseLayout } from '@/layouts/BaseLayout'

const NotFoundPage: NextPage = () => {
const { t } = useTranslation('common')
const router = useRouter()

return (
<BaseLayout
title={routes(t).error404.seo.title || ''}
description={routes(t).error404.seo.description || ''}
openGraph={routes(t).error404.seo}
className="pt-10 border-none"
>
<PageHeader
<Container>
<NextSeo
title={routes(t).error404.seo.title}
description={routes(t).error404.seo.description}
openGraph={routes(t).error404.seo}
/>
<section className="pt-10 border-none">
<header>
<H1>{routes(t).error404.seo.title}</H1>
<p className="text-base sm:text-lg text-gray-500 dark:text-gray-400 mt-2">
{routes(t).error404.seo.description}
</p>
</header>
</section>
<button onClick={() => router.push('/')}>Back Home</button>
</BaseLayout>
</Container>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AppProps } from 'next/app'

import '@/styles/globals.css'
import '../styles/globals.css'
import '@/styles/prism.css'

function MyApp({ Component, pageProps }: AppProps) {
Expand Down
24 changes: 15 additions & 9 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
import { NextSeo } from 'next-seo'
import useTranslation from 'next-translate/useTranslation'

import { Container } from '@/components/Container'
import { PageHeader } from '@/components/PageHeader'

import { routes } from '@/config/routes'
import { BaseLayout } from '@/layouts/BaseLayout'

export default function About() {
const { t } = useTranslation('common')

return (
<BaseLayout
title={routes(t).about.seo.title || ''}
description={routes(t).about.seo.description || ''}
openGraph={routes(t).about.seo}
className="pt-10 border-none"
>
<PageHeader title={routes(t).about.seo.title} description={routes(t).about.seo.description} />
</BaseLayout>
<Container>
<NextSeo
title={routes(t).about.seo.title}
description={routes(t).about.seo.description}
openGraph={routes(t).about.seo}
/>
<main className="pt-10 border-none">
<PageHeader
title={routes(t).about.seo.title}
description={routes(t).about.seo.description}
/>
</main>
</Container>
)
}
2 changes: 1 addition & 1 deletion src/pages/tag/[tag].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const TagPage: NextPage<CategoryPageProps> = ({ posts, tag }) => {
<main className="mx-auto space-y-20 divide-y divide-slate-200 sm:space-y-16 lg:max-w-none lg:space-y-32">
<section className="grid grid-cols-1 gap-y-10 gap-x-6 pt-10">
<PageHeader
title={pages(t, tag).tag.h1}
title={titlePage}
description={`All my articles related to the ${tag} topic.`}
/>

Expand Down
Loading

1 comment on commit 68ffce2

@vercel
Copy link

@vercel vercel bot commented on 68ffce2 Jul 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.