use right models in the templates
This commit is contained in:
parent
6e400f4263
commit
586ab0287b
@ -1,5 +1,5 @@
|
|||||||
import { PostList } from '@blog/templates/components/PostList';
|
import { PostList } from '@blog/templates/components/PostList';
|
||||||
import { PostMeta } from '@blog/model/PostMeta';
|
import { PostMeta } from '@blog/models/PostMeta';
|
||||||
|
|
||||||
export function Home({ posts }: { posts: PostMeta[] }) {
|
export function Home({ posts }: { posts: PostMeta[] }) {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Post } from "@blog/model/Post";
|
import { Post } from "@blog/models/Post";
|
||||||
|
|
||||||
export function PostPage({ post }: { post: Post }) {
|
export function PostPage({ post }: { post: Post }) {
|
||||||
const html = { __html: post.html ?? '' };
|
const html = { __html: post.html ?? '' };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { PostMeta } from '@blog/model/PostMeta';
|
import type { PostMeta } from '@blog/models/PostMeta';
|
||||||
|
|
||||||
export function PostList({ posts }: { posts: PostMeta[] }) {
|
export function PostList({ posts }: { posts: PostMeta[] }) {
|
||||||
return(
|
return(
|
||||||
|
Loading…
Reference in New Issue
Block a user