avoid route collision

This commit is contained in:
James Acklin 2021-10-06 18:52:54 -04:00
parent 09b52ce8ae
commit 01565e5db6
3 changed files with 5 additions and 4 deletions

View File

@ -2,11 +2,11 @@ import { sigil, reactRenderer } from "@tlon/sigil-js";
export default function Sigil(props) {
return (
<div className="p-4 bg-black inline-block rounded-xl">
<div className="p-4 bg-black inline-block rounded-lg">
{sigil({
patp: props.patp,
renderer: reactRenderer,
size: 48,
size: 32,
margin: false,
colors: ["black", "white"],
})}

View File

@ -7,5 +7,5 @@ export const POSTS_PATH = path.join(process.cwd(), "content");
// postFilePaths is the list of all mdx files inside the POSTS_PATH directory
export const postFilePaths = fs
.readdirSync(POSTS_PATH)
// Only include md(x) files
.filter((path) => /\.mdx?$/.test(path));
// Only include mdx files
.filter((path) => /\.mdx$/.test(path));

View File

@ -7,6 +7,7 @@ import Container from "../components/Container";
import Section from "../components/Section";
import SingleColumn from "../components/SingleColumn";
import Sigil from "../components/Sigil";
export default function Post() {
const source = require(`../content/community.md`);
const { content, data } = matter(source.default);