So much styling

This commit is contained in:
2022-10-18 16:46:33 +02:00
parent 3d968a8f0e
commit 0554ecaeae
7 changed files with 49 additions and 22 deletions

View File

@ -1,7 +1,7 @@
import type { GetServerSideProps, NextPage } from "next";
import ContentPage from "../../../components/Blog/ContentPage";
import Layout from "../../../components/Blog/Layout";
import { generateContent, getContentList } from "../../../lib/content/generateBackend";
import { generateContent, getContentList, prepareDOM } from "../../../lib/content/generateBackend";
import type { ContentList, ProjectRender } from "../../../lib/content/types";
const Post: NextPage<{ content: ProjectRender }> = ({ content }) => {
@ -20,6 +20,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
if (!contentEntry) return { notFound: true };
const contentHtml = await generateContent(contentEntry);
const contentPrepared = prepareDOM(contentHtml);
return {
props: {
@ -27,7 +28,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
more: contentEntry.more || null,
repo: contentEntry.repo || null,
title: contentEntry.title,
html: contentHtml,
html: contentPrepared,
}
}
};