Add proper titles to pages
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
import "../styles/global.css"
|
|
||||||
---
|
|
||||||
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
||||||
<meta name="viewport" content="width=device-width" />
|
|
||||||
<meta name="generator" content={Astro.generator} />
|
|
||||||
<title>Astro</title>
|
|
||||||
@@ -1,12 +1,19 @@
|
|||||||
---
|
---
|
||||||
import BaseHead from '@component/BaseHead'
|
|
||||||
import Header from '@component/Header'
|
import Header from '@component/Header'
|
||||||
import "../styles/global.css";
|
import "../styles/global.css";
|
||||||
|
|
||||||
|
const {
|
||||||
|
title
|
||||||
|
} = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang=en>
|
<html lang=en>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title="Recipie" />
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<meta name="generator" content={Astro.generator} />
|
||||||
|
<title>{title ? title : "Recipie"}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main id="main" class="flex-1">
|
<main id="main" class="flex-1">
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const recipeId = id as string
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Base>
|
<Base title="Edit Recipe">
|
||||||
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
||||||
<div class="flex md:flex-1/3 flex-col sticky">
|
<div class="flex md:flex-1/3 flex-col sticky">
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const images = await Promise.all(
|
|||||||
)
|
)
|
||||||
---
|
---
|
||||||
|
|
||||||
<Base>
|
<Base title=`${recipeData.metadata.title}: Recipie` >
|
||||||
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
||||||
<div class="flex md:flex-1/3 flex-col mt-2 md:mt-4 sticky">
|
<div class="flex md:flex-1/3 flex-col mt-2 md:mt-4 sticky">
|
||||||
<ImageCarousel class="w-full" images={images} />
|
<ImageCarousel class="w-full" images={images} />
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ tags:
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Base>
|
<Base title="New Recipe">
|
||||||
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
<div class="flex flex-col md:flex-row mx-auto justify-center w-full lg:max-w-3/4 xl:max-w-2/3 2xl:max-w-1/2">
|
||||||
<div class="flex md:flex-1/3 flex-col sticky">
|
<div class="flex md:flex-1/3 flex-col sticky">
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if (query) {
|
|||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
||||||
<Base>
|
<Base title=`Search${ query != "" ? ": " + query : "" }`>
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<!-- <h1 class="text-3xl font-bold mb-4">Search Recipes</h1> -->
|
<!-- <h1 class="text-3xl font-bold mb-4">Search Recipes</h1> -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user