feat: fix some shit

This commit is contained in:
2023-08-06 18:06:09 +02:00
parent 6f650b568d
commit f482ebcce0
10 changed files with 23 additions and 12 deletions

View File

@ -2,7 +2,6 @@ import { Handlers, PageProps } from "$fresh/server.ts";
import { MainLayout } from "@components/layouts/main.tsx";
import { getMovie, Movie } from "@lib/resource/movies.ts";
import { RecipeHero } from "@components/RecipeHero.tsx";
import { KMenu } from "@islands/KMenu.tsx";
import { HashTags } from "@components/HashTags.tsx";
import { renderMarkdown } from "@lib/documents.ts";
@ -21,14 +20,13 @@ export default function Greet(props: PageProps<Movie>) {
const content = renderMarkdown(movie.description || "");
return (
<MainLayout url={props.url} title={`Movie > ${movie.name}`}>
<MainLayout url={props.url} title={`Movie > ${movie.name}`} context={movie}>
<RecipeHero
data={movie}
subline={[author, date.toString()]}
editLink={`https://notes.max-richter.dev/Media/movies/${movie.id}`}
backlink="/movies"
/>
<KMenu type="main" context={movie} />
{movie.tags.length > 0 && (
<>
<br />

View File

@ -16,7 +16,6 @@ export const handler: Handlers<Movie[] | null> = {
export default function Greet(props: PageProps<Movie[] | null>) {
return (
<MainLayout url={props.url} title="Movies" context={{ type: "movie" }}>
<KMenu type="main" context={false} />
<header class="flex gap-4 items-center mb-5 md:hidden">
<a
class="px-4 ml-4 py-2 bg-gray-300 text-gray-800 rounded-lg flex items-center gap-1"