Skip to content

Commit

Permalink
Merge pull request #91 from systemphil/chore/seo-titles
Browse files Browse the repository at this point in the history
chore/seo-titles
  • Loading branch information
Firgrep authored Oct 3, 2024
2 parents f20a9ac + 3612ad2 commit 5ad5b35
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/pages/hegel/guides/general-division-of-the-logic.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Division of the Logic
seoTitle: Division of Hegel's Logic
description: Here is a quick overview of the Science of Logic
isArticle: true
authors: Filip Niklas (2024)
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/guides/science-of-logic-introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
seoTitle: Introduction to Hegel's Logic
description: Learn about the distinctive logic at work in the Science of Logic
isArticle: true
authors: Filip Niklas (2024)
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/becoming/development.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Development
seoTitle: Becoming in Hegel's Logic
description:
Learn about the development of becoming from Hegel's Science of Logic.
isArticle: true
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/becoming/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Overview
seoTitle: Overview of Becoming in Hegel's Logic
description:
Overview page for the category of becoming from Hegel's Science of Logic.
isArticle: false
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/being/development.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Development
seoTitle: Being in Hegel's Logic
description:
Learn about the development of pure being from Hegel's Science of Logic.
isArticle: true
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/being/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Overview
seoTitle: Overview of Being in Hegel's Logic
description:
Overview page for the category of being from Hegel's Science of Logic.
isArticle: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: First Paragraph
seoTitle: Mechanism in Hegel - First Paragraph
description:
Learn about the first paragraph of the Mechanical Object from Hegel's
Science of Logic
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/mechanical-object/section-1.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Section 1
seoTitle: Mechanism in Hegel - Section 1 of Mechanical Object
description: Learn about Section 1 of the Mechanical Object
isArticle: true
authors: Ahilleas Rokni (2024)
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/mechanical-object/section-2.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Section 2
seoTitle: Mechanism in Hegel - Section 2 of Mechanical Object
description: Learn about the second section of the Mechanical Object
isArticle: true
authors: Ahilleas Rokni (2024)
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/mechanical-object/section-3.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Section 3
seoTitle: Mechanism in Hegel - Section 3 of Mechanical Object
description:
Learn about the third section of the Mechanical Object from Hegel's Science
of Logic
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/nothing/development.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Development
seoTitle: Nothing in Hegel's Logic
description:
Learn about the development of the idea of nothing from Hegel's Science of
Logic.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: The Difference Between Being and Nothing
seoTitle: The Difference Between Being and Nothing in Hegel's Logic
description:
Learn about the difference between being and nothing from Hegel's Science of
Logic.
Expand Down
1 change: 1 addition & 0 deletions src/pages/hegel/reference/nothing/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Overview
seoTitle: Overview of Nothing in Hegel's Logic
description:
Overview page for the category of nothing from Hegel's Science of Logic.
isArticle: false
Expand Down
9 changes: 4 additions & 5 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ const config: DocsThemeConfig = {
name="title"
property="og:title"
content={
frontMatter.overrideTitle ||
frontMatter.title ||
"sPhil"
frontMatter.seoTitle || frontMatter.title || "sPhil"
}
/>
</>
Expand Down Expand Up @@ -122,12 +120,13 @@ const config: DocsThemeConfig = {
section = "Spinoza";
}

const defaultTitle = frontMatter.overrideTitle || section;
const defaultTitle =
frontMatter.seoTitle || frontMatter.title || section;

return {
description: frontMatter.description,
defaultTitle,
titleTemplate: `%s${section}`,
titleTemplate: `${defaultTitle}${section}`,
};
},
};
Expand Down

0 comments on commit 5ad5b35

Please sign in to comment.