Refactor the templates to use the right models.
This commit is contained in:
parent
0a138a608f
commit
0a055c77dd
@ -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`
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import { Page } from '@blog/templates/Page';
|
|
||||||
|
|
||||||
export function FourOhFour() {
|
export function FourOhFour() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -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} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user