Refactor the templates to use the right models.

This commit is contained in:
Dave Smith-Hayes 2024-07-28 19:52:05 -04:00
parent 0a138a608f
commit 0a055c77dd
4 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import { css, Style } from 'hono/css'; import { css, Style } from 'hono/css';
import { SiteMeta } from '@blog/model/SiteMeta'; import { SiteMeta } from '@blog/models/SiteMeta';
import { MetaTags } from '@blog/templates/components/MetaTags'; import { MetaTags } from '@blog/templates/components/MetaTags';
const logoClass = css` const logoClass = css`

View File

@ -1,5 +1,3 @@
import { Page } from '@blog/templates/Page';
export function FourOhFour() { export function FourOhFour() {
return ( return (
<> <>

View File

@ -5,7 +5,7 @@ export function PostPage({ post }: { post: Post }) {
return ( return (
<> <>
<h1>{post.meta.title}</h1> <h1>{post.meta.title}</h1>
<div dangerouslySetInnerHTML={html} /> <div class="post-content" dangerouslySetInnerHTML={html} />
</> </>
); );
} }

View File

@ -1,4 +1,4 @@
import { SiteMeta } from '@blog/model/SiteMeta'; import { SiteMeta } from '@blog/models/SiteMeta';
export function Description({ meta }: { meta: SiteMeta }) { export function Description({ meta }: { meta: SiteMeta }) {
if (!meta?.description) { if (!meta?.description) {