Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SEO information #167

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(module.exports = {
title: "Flashbots",
tagline: "Research respository of Flashbots",
title: "Flashbots Writings",
baseUrl: process.env.REACT_APP_BASE_URL,
url: process.env.REACT_APP_TARGET_URL,
onBrokenLinks: "throw",
Expand Down Expand Up @@ -48,7 +47,7 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
({
docs: false,
blog: {
blogTitle: "Writings",
blogDescription: "A collection of articles and papers from Flashbots.",
path: "./content",
routeBasePath: "/",
postsPerPage: "ALL",
Expand Down Expand Up @@ -76,10 +75,9 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
hideableSidebar: true,
metadata: [
{name: 'twitter:card', content: 'summary_large_image'},
{name: 'twitter:title', content: 'Writings'},
{name: 'twitter:description', content: 'A collection of articles and papers from Flashbots.'},
metadatas: [
{name: 'twitter:description', content: "A collection of articles and papers from Flashbots."},
{name: 'twitter:title', content: "Flashbots Writings"},
],
image: 'img/tw-card.jpg',
navbar: {
Expand Down
10 changes: 2 additions & 8 deletions src/theme/BlogListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@ const paginate = function (array: Array<any>[], index: number, size: number, tag


function BlogListPage(props: Props): JSX.Element {
const { metadata, items, location } = props
const {
siteConfig: { title: siteTitle }
} = useDocusaurusContext()
const { blogDescription, blogTitle, permalink } = metadata
const isBlogOnlyMode = permalink === "/"
const title = isBlogOnlyMode ? siteTitle : blogTitle
const { metadata, items } = props
const { blogDescription } = metadata
const tags = extractTags(props)
const tagsListRef = React.useRef(null)
const [page, setPage] = useState(0)
Expand All @@ -98,7 +93,6 @@ function BlogListPage(props: Props): JSX.Element {
const [searchFilter, setSearchFilter] = useState("")
return (
<BlogLayout
title={title}
description={blogDescription}
wrapperClassName={clsx(ThemeClassNames.wrapper.blogPages, styles.blogPageRoot)}
pageClassName={ThemeClassNames.page.blogListPage}
Expand Down
Loading