Skip to content

Commit

Permalink
Merge pull request #375 from mbeps/development
Browse files Browse the repository at this point in the history
Using about markdown instead of description of the page by default
  • Loading branch information
mbeps authored Apr 29, 2024
2 parents 3a8dcdc + 9f42bd2 commit e903f9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/(site)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ import HeroSection from "./components/HeroSection";
import ProjectsSection from "./components/ProjectSection";
import developerName from "@/constants/developerName";
import { HOME_PAGE } from "@/constants/pages";
import getMarkdownFromFileSystem from "@/actions/file-system/getMarkdownFromFileSystem";

const aboutContent: string | undefined = getMarkdownFromFileSystem(
`public/about/short.md`
)?.content.replace(/^\*/gm, "");

export const metadata: Metadata = {
title: developerName,
description: HOME_PAGE.description,
description: aboutContent || HOME_PAGE.description,
};

/**
Expand Down

0 comments on commit e903f9d

Please sign in to comment.