diff --git a/@theme/components/Footer/BlogFooter.tsx b/@theme/components/Footer/BlogFooter.tsx deleted file mode 100644 index 106c0eb2c9..0000000000 --- a/@theme/components/Footer/BlogFooter.tsx +++ /dev/null @@ -1,136 +0,0 @@ -import * as React from 'react'; -import styled from 'styled-components'; -import { useThemeConfig } from '@theme/hooks/useThemeConfig'; -import { useTranslate } from '@portal/hooks'; -import { useLocation } from 'react-router-dom'; - -export function BlogFooter(props) { - const themeConfig = useThemeConfig(); - const { pathname } = useLocation(); - const { translate } = useTranslate(); - - // Provide different footer links for the Blog site. - if (pathname.includes("blog")) { - themeConfig.footer.items = [ - { - label: translate("Learn"), - type: "group", - items: [ - { - type: "link", - fsPath: "about/index.page.tsx", - label: translate("Overview"), - link: "/about/", - }, - { - type: "link", - fsPath: "about/uses.page.tsx", - label: translate("Uses"), - link: "/about/uses", - }, - { - type: "link", - fsPath: "about/history.page.tsx", - label: translate("History"), - link: "/about/history", - }, - { - type: "link", - fsPath: "about/impact.page.tsx", - label: translate("Impact"), - link: "/about/impact", - }, - { - type: "link", - fsPath: "about/impact.page.tsx", - label: translate("Carbon Calculator"), - link: "/about/impact", - }, - ], - }, - { - label: translate("Explore"), - type: "group", - items: [ - { - type: "link", - fsPath: "/docs/introduction/crypto-wallets.md", - label: translate("Wallets"), - link: "/docs/introduction/crypto-wallets", - }, - { - type: "link", - fsPath: "about/xrp.page.tsx", - label: translate("Exchanges"), - link: "/about/xrp", - }, - { - type: "link", - fsPath: "about/uses.page.tsx", - label: translate("Businesses"), - link: "/about/uses", - }, - { - type: "link", - fsPath: "", - label: translate("Ledger Explorer"), - link: "https://livenet.xrpl.org/", - }, - ], - }, - { - label: translate("Build"), - type: "group", - items: [ - { - type: "link", - fsPath: "/docs/tutorials/index.md", - label: translate("Get Started"), - link: "/docs/tutorials", - }, - { - type: "link", - fsPath: "/docs/index.page.tsx", - label: translate("Docs"), - link: "/docs/", - }, - { - type: "link", - fsPath: "/resources/dev-tools/index.page.tsx", - label: translate("Dev Tools"), - link: "/resources/dev-tools/", - }, - { - type: "link", - fsPath: "/blog/index.page.tsx", - label: translate("Dev Blog"), - link: "/blog/", - }, - ], - }, - { - label: translate("Contribute"), - type: "group", - items: [ - { - type: "link", - fsPath: "/resources/contribute-code/index.md", - label: translate("How to Contribute"), - link: "/resources/contribute-code", - }, - { - type: "link", - fsPath: "", - label: translate("XRPL on Github"), - link: "https://github.com/XRPLF/xrpl-dev-portal", - external: true, - }, - ], - }, - ]; - } - - // NOTE: We don't render anything because we only want to change the footer data, - // but the design should remain the same. - return null; -} diff --git a/blog/index.page.tsx b/blog/index.page.tsx index 880dde81d1..ab5aaedeb8 100644 --- a/blog/index.page.tsx +++ b/blog/index.page.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import { useState, useRef, useEffect } from "react"; import { useTranslate, usePageSharedData } from "@portal/hooks"; import moment from "moment"; -import { BlogFooter } from "@theme/components/Footer/BlogFooter"; export const frontmatter = { seo: { @@ -95,12 +94,11 @@ export default function Index() { {translate(` ${moment(heroPost.date).format("DD YYYY")}`)}
{translate(`${heroPost.category}`)} -
+{translate(card.category)} -
+@@ -240,7 +237,6 @@ export default function Index() {