feat: artefaktuak atala sortzen du
This commit is contained in:
1 parent
6d297f7cbe
commit
60d259a28a
6 files changed
+146
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
---
|
||||
title: Karpetazoa! Zure programa kulturala
|
||||
description: 2012ko urritik 2013ko ekainera Arrasateko gaztetxeko Itxungi Irratian sortutako irratsaioa.
|
||||
---
|
||||
|
||||
2012ko urritik 2013ko ekainera, Arrasateko gaztetxeko Itxungi Irratian, Ander Biguri, Janire Beriain eta hirurok irratsaio bat ekoiztu genuen. Formatua hurrengoa zen: Ander eta biok gogoko genituen pelikula, komiki, etab.-ei buruz hitz egiten genuen eta gogoko genuen musika ere jartzen genuen. Janirek, soinu-teknikari lana egiten zuen. Noizean behin, Dr. Iago etortzen zen gurekin hitz egitera, Arrasateko gaztetxeko kide friki bat (frikia, zentzurik ederrenean).
|
||||
|
||||
iVoox plataformara igotzen genituen saio guztiak eta, kontrola ez galtzeko, honera ekarri ditut. Izan ere, ikusi dut iVoox-ek saio batzuk kendu dituela (musikaren egile eskubideengatik, suposatzen dut).
|
||||
|
||||
```text
|
||||
Hurrengo pausoak:
|
||||
- Saio guztien audioak igotzea.
|
||||
```
|
||||
@@ -14,6 +14,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
||||
<nav>
|
||||
<HeaderLink href="/">hasiera</HeaderLink>
|
||||
<HeaderLink href="/post">postak</HeaderLink>
|
||||
<HeaderLink href="/artefaktua">artefaktuak</HeaderLink>
|
||||
<HeaderLink isExternal href="https://sayagata.txarli.dev">sayagata</HeaderLink
|
||||
>
|
||||
<HeaderLink isExternal href="https://git.fosil.eu/txarli">git</HeaderLink>
|
||||
|
||||
@@ -19,6 +19,14 @@ const posts = defineCollection({
|
||||
|
||||
const tags = defineCollection({
|
||||
loader: glob({ pattern: "*.md", base: "./content/tags" }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { posts, tags };
|
||||
const artefaktuak = defineCollection({
|
||||
loader: glob({ pattern: "*.md", base: "./content/artefaktuak" }),
|
||||
});
|
||||
|
||||
export const collections = { posts, tags, artefaktuak };
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
import BaseHead from "../components/BaseHead.astro";
|
||||
import Header from "../components/Header.astro";
|
||||
import Footer from "../components/Footer.astro";
|
||||
import ColorScript from "../components/ColorScript.astro";
|
||||
import Container from "../components/Container.astro";
|
||||
import type { CollectionEntry } from "astro:content";
|
||||
|
||||
interface Props {
|
||||
artefaktua: CollectionEntry<"artefaktuak">;
|
||||
}
|
||||
|
||||
let {
|
||||
artefaktua: {
|
||||
data: { title, description },
|
||||
},
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<html>
|
||||
<BaseHead title={`${title} · txarli.dev`} description={description} />
|
||||
|
||||
<body>
|
||||
<Container>
|
||||
<Header />
|
||||
<main>
|
||||
<article>
|
||||
<h1 class="article-title">{title}</h1>
|
||||
<hr />
|
||||
<div class="blog-post">
|
||||
<slot />
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
<Footer />
|
||||
<ColorScript />
|
||||
</Container>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
import { getCollection, render } from "astro:content";
|
||||
import Artefaktua from "../../layouts/Artefaktua.astro";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const artefaktuak = await getCollection("artefaktuak");
|
||||
|
||||
return artefaktuak.map((artefaktua) => {
|
||||
return {
|
||||
params: { slug: artefaktua.id },
|
||||
props: { artefaktua: artefaktua },
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
const { artefaktua } = Astro.props;
|
||||
const { Content } = await render(artefaktua);
|
||||
---
|
||||
|
||||
<Artefaktua artefaktua={artefaktua}>
|
||||
<Content />
|
||||
</Artefaktua>
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import BaseHead from "../../components/BaseHead.astro";
|
||||
import Header from "../../components/Header.astro";
|
||||
import Footer from "../../components/Footer.astro";
|
||||
import ColorScript from "../../components/ColorScript.astro";
|
||||
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../../config";
|
||||
import Container from "../../components/Container.astro";
|
||||
|
||||
const artefaktuak = await getCollection("artefaktuak");
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="eu">
|
||||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
||||
<body>
|
||||
<Container>
|
||||
<div>
|
||||
<Header />
|
||||
<main>
|
||||
<content>
|
||||
<ul>
|
||||
{
|
||||
artefaktuak.map((artefaktua) => (
|
||||
<li>
|
||||
<a href={`/artefaktua/${artefaktua.id}`}>
|
||||
{artefaktua.data.title}
|
||||
</a>
|
||||
{artefaktua.data.description && (
|
||||
<p>{artefaktua.data.description}</p>
|
||||
)}
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</content>
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
</Container>
|
||||
<ColorScript />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style lang="scss">
|
||||
div {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto 1fr auto;
|
||||
min-height: calc(100dvh - 80px); // body-ak 40px-eko padding-a du
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li {
|
||||
border: 2px solid var(--blue);
|
||||
padding: 0.5em;
|
||||
border-radius: 0.375em;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user