feat: etiketak kentzen ditu blog post batetik
This commit is contained in:
@@ -1,14 +1,9 @@
|
|||||||
---
|
---
|
||||||
import { getCollection } from "astro:content";
|
|
||||||
import BaseHead from "../components/BaseHead.astro";
|
import BaseHead from "../components/BaseHead.astro";
|
||||||
import Header from "../components/Header.astro";
|
import Header from "../components/Header.astro";
|
||||||
import Footer from "../components/Footer.astro";
|
import Footer from "../components/Footer.astro";
|
||||||
import ColorScript from "../components/ColorScript.astro";
|
import ColorScript from "../components/ColorScript.astro";
|
||||||
import Tags from "../components/Tags.astro";
|
import Tags from "../components/Tags.astro";
|
||||||
import getTags from "../scripts/getTags";
|
|
||||||
|
|
||||||
const posts = await getCollection("posts");
|
|
||||||
const allTags = getTags(posts);
|
|
||||||
|
|
||||||
let {
|
let {
|
||||||
content: { title, description, added, updated, tags, heroImage },
|
content: { title, description, added, updated, tags, heroImage },
|
||||||
@@ -56,7 +51,6 @@ if (updated) {
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
<Tags tags={allTags} all />
|
|
||||||
<Footer />
|
<Footer />
|
||||||
<ColorScript />
|
<ColorScript />
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user