- {article.tags.map((t) => {
- return (
-
- #{t}
-
- );
- })}
-
- )}
+ {article.tags.length > 0 && (
+ <>
+ +
+ {isYoutubeLink(article.meta.link) && (
+
+ )}
diff --git a/routes/articles/index.tsx b/routes/articles/index.tsx
index d151384..b26cab8 100644
--- a/routes/articles/index.tsx
+++ b/routes/articles/index.tsx
@@ -4,6 +4,7 @@ import IconArrowLeft from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/arrow-
import { Article, getAllArticles } from "@lib/resource/articles.ts";
import { Card } from "@components/Card.tsx";
import { KMenu } from "@islands/KMenu.tsx";
+import { Grid } from "@components/Grid.tsx";
export const handler: Handlers- {article.content} + {article.content||""}
+
{props.data?.map((doc) => {
return ;
})}
-
+
);
}
diff --git a/routes/index.tsx b/routes/index.tsx
index 905556c..e56ab56 100644
--- a/routes/index.tsx
+++ b/routes/index.tsx
@@ -2,6 +2,7 @@ import { Head } from "$fresh/runtime.ts";
import { MainLayout } from "@components/layouts/main.tsx";
import { Card } from "@components/Card.tsx";
import { PageProps } from "$fresh/server.ts";
+import { menu } from "@lib/menus.ts";
export default function Home(props: PageProps) {
return (
@@ -10,17 +11,16 @@ export default function Home(props: PageProps) {
-
-
+ = {
async GET(_, ctx) {
@@ -24,6 +25,12 @@ export default function Greet(props: PageProps) {
backlink="/movies"
/>
+ {movie.tags.length > 0 && (
+ <>
+
+
+ >
+ )}
+ {menu.map((m) => {
+ return (
+
+ );
+ })}
>
diff --git a/routes/movies/[name].tsx b/routes/movies/[name].tsx
index 0e144f6..d4c94cf 100644
--- a/routes/movies/[name].tsx
+++ b/routes/movies/[name].tsx
@@ -3,6 +3,7 @@ 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";
export const handler: Handlers+
= { async GET(_, ctx) { @@ -25,11 +26,11 @@ export default function Greet(props: PageProps) { 🍿 Movies
-++ ); } diff --git a/routes/recipes/index.tsx b/routes/recipes/index.tsx index f5651e4..be1b8f3 100644 --- a/routes/recipes/index.tsx +++ b/routes/recipes/index.tsx @@ -3,6 +3,7 @@ import { RecipeCard } from "@components/RecipeCard.tsx"; import { MainLayout } from "@components/layouts/main.tsx"; import { getAllRecipes, Recipe } from "@lib/resource/recipes.ts"; import IconArrowLeft from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/arrow-left.tsx"; +import { Grid } from "@components/Grid.tsx"; export const handler: Handlers{props.data?.map((doc) => { return ; })} - = { async GET(_, ctx) { @@ -25,11 +26,11 @@ export default function Greet(props: PageProps ) { 🍽️ Recipes
-++ ); }{props.data?.map((doc) => { return ; })} -