diff --git a/content/docs/run-core-node/index.mdx b/content/docs/run-core-node/index.mdx index 5602394b5..2fb73f929 100644 --- a/content/docs/run-core-node/index.mdx +++ b/content/docs/run-core-node/index.mdx @@ -1,6 +1,7 @@ --- title: "Overview" order: 10 +description: "Run a Core Node" --- import { Alert } from "components/Alert"; @@ -83,4 +84,4 @@ An Archiver is a rare bird: like a Full Validator, it publishes the activity of Archivers help with decentralization a bit by offering redundant accounts of the network’s history, but they don’t vote or sign ledgers, so their usefulness is fairly limited. If you run a Stellar-facing service, like a blockchain explorer, you may want to run one. Otherwise, you’re probably better off choosing one of the other two types. -**Use an archiver if you want to referee the network. Which is unlikely.** +**Use an archiver if you want to referee the network. Which is unlikely.** \ No newline at end of file diff --git a/src/templates/Documentation.js b/src/templates/Documentation.js index c44c52a99..d124ed733 100644 --- a/src/templates/Documentation.js +++ b/src/templates/Documentation.js @@ -130,7 +130,7 @@ const PageOutlineItem = ({ id, isActive, title }) => { }; const Documentation = ({ data, pageContext, location }) => { - const { articleBody, allFile } = data; + const { articleBody, allFile, mdx } = data; const { relativeDirectory, name, rootDir } = pageContext; const docsContents = @@ -155,9 +155,12 @@ const Documentation = ({ data, pageContext, location }) => { url, } = findArticle(pagePath, docsContents)[name]; - const description = React.useMemo(() => getDescriptionFromAst(mdxAst), [ - mdxAst, - ]); + const { frontmatter } = mdx; + + const description = React.useMemo( + () => frontmatter.description || getDescriptionFromAst(mdxAst), + [mdxAst, frontmatter.description], + ); const pageOutline = headings.map(({ value }) => ({ href: `#${slugify(value)}`, @@ -313,5 +316,12 @@ export const pageQuery = graphql` } } } + mdx: mdx(id: { eq: $mdxId }) { + frontmatter { + description + order + title + } + } } `;