Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02223d254e | ||
|
|
7f3dfafe9d | ||
|
|
3b47191d78 | ||
|
|
a866661a82 | ||
|
|
b5e7ba5b45 | ||
|
|
cc9d1e0313 | ||
|
|
579df7b3d7 | ||
|
|
270b7fa3e4 | ||
|
|
0f435de542 | ||
|
|
ae7848e0dd | ||
|
|
b83d9d3dcb | ||
|
|
d040644d95 | ||
|
|
fa9b1abab8 | ||
|
|
1260c02b96 | ||
|
|
0dc581e660 |
No files matched your search
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules/typescript/lib"
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
|
"editor.formatOnSave": true
|
||||||
}
|
}
|
||||||
File renamed without changes.
+8
-3
@@ -10,10 +10,15 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/rss": "^4.0.19",
|
"@astrojs/rss": "^4.0.19",
|
||||||
"@astrojs/sitemap": "^3.7.3",
|
"@astrojs/sitemap": "3.7.4",
|
||||||
"astro": "^7.2.0",
|
"astro": "7.4.5",
|
||||||
"prettier": "^3.8.1",
|
"prettier": "^3.8.1",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"sharp": "^0.35.3"
|
"sass-embedded": "^1.107.1",
|
||||||
|
"sharp": "^0.35.5",
|
||||||
|
"typescript": "^6.0.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@astrojs/check": "^0.9.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+1740
-646
File diff suppressed because it is too large.
Load diff
+1
-3
@@ -1,6 +1,4 @@
|
|||||||
allowBuilds:
|
allowBuilds:
|
||||||
|
'@parcel/watcher': true
|
||||||
esbuild: true
|
esbuild: true
|
||||||
sharp: true
|
sharp: true
|
||||||
onlyBuiltDependencies:
|
|
||||||
- esbuild
|
|
||||||
- sharp
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
title: An Empty Bliss Beyond This World - The Caretaker
|
||||||
|
slug: an-empty-bliss-beyond-this-world
|
||||||
|
description: >-
|
||||||
|
The Caretaker ekoizlearen "An Empty Bliss Beyond This World" diskaren komentario bat.
|
||||||
|
tags:
|
||||||
|
- musika
|
||||||
|
added: "2026-10-20"
|
||||||
|
---
|
||||||
|
|
||||||
|
2011 urtean, James Leyland Kirby musikariak, bere The Caretaker ezizenarekin, erronka bat planteatu zion bere buruari: musikaren bitartez, Alzheimer edo dementzia pairatzen duten pertsonen bizipenean sakontzea.
|
||||||
|
|
||||||
|
<iframe style="border: 0; width: 400px; height: 472px;" src="https://bandcamp.com/EmbeddedPlayer/album=2223554308/size=large/bgcol=ffffff/linkcol=333333/artwork=small/transparent=true/" seamless><a href="https://thecaretaker.bandcamp.com/album/an-empty-bliss-beyond-this-world">An empty bliss beyond this World de The Caretaker</a></iframe>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
title: Athanasius Kircher, el (no tan) conocido polímata
|
||||||
|
slug: athanasius-kircher
|
||||||
|
description: >-
|
||||||
|
Athanasius Kircher-i buruzko apunte batzuk. 2015ean nuen blog-ean idatzitako post bat.
|
||||||
|
tags:
|
||||||
|
- pertsonala
|
||||||
|
added: "2015-6-10"
|
||||||
|
---
|
||||||
|
|
||||||
|
*_Oharra: Honako hau, aspaldi izan nuen blog zahar batean idatzitako post bat da. [Ikusi post-a Wayback Machine-ean](https://web.archive.org/web/20160329164037/http://blog.aitorcurrutia.com/athanasius-kircher/)._*
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_Athanasius Kircher fue un jesuíta y polímata alemán del siglo XVII. En este artículo, se pretende hacer un breve resumen de sus logros e investigaciones._
|
||||||
|
|
||||||
|
Nacido el 2 de mayo de 1601 o 1602 en Geisa, Buchonia (que hoy en día es el estado federado de Hesse, en Alemania). Inició sus estudios de Filosofía y Teología en Paderborn aunque, por diferentes motivos (sobre todo el auge del protestantismo), tuvo que ir a terminarlos a Colonia. Viajó por toda Europa para terminar quedándose en Roma, donde murió en 1690.
|
||||||
|
|
||||||
|
Llevó a cabo estudios de geología, analizando volcanes en Nápoles, Sicilia y malta. Como anécdota e indicador de la valentía de esta persona, llegó a desdender al cráter del volcán Vesubio atado a una cuerda. Publicó los resultados de estas investigaciones en su "Mundus subterraneus, quo universae denique naturae divitiae".
|
||||||
|
|
||||||
|
Fue también un importante egiptólogo. Aprendió lengua Copta y publicó, en 1636, el primer tratado de grámatica en este idioma que se conoce. Dedicó gran parte de su vida al estudio de los jeroglíficos egipcios y, aunque obtuvo dudosos resultados (el egiptólogo E.A. Wallis Budge dijo que sus traducciones eran un sinsentido), sentó las bases del estudio serio de los jeroglíficos. De hecho, casi dos siglos más tarde, Champollion recurriría a los datos recogidos en el "Oedipus Ægyptiacus" para descifrar la Piedra Rosetta.
|
||||||
|
|
||||||
|
Además de sus tratados sobre egiptología, se dedicó al estudio de la sinología, publicando en 1667 el tratado "China Illustrata". En este trabajo enciclopédico, recogió precisos escritos cartográficos, asi como estudios sobre los dragones.
|
||||||
|
|
||||||
|
En el ámbito más científico, hizo grandes descubrimientos de medicina. Analizó con microscopios la sangre de enfermos de la Peste Bubónica, llegando a la conclusión de que ésta era producida por microorganismos (más tarde, se supo que, aunque la conclusión era correcta, lo que Athanasius Kircher pudo ver en el microscopio fueron leucocitos o eritrocitos). Propuso innovadoras medidas de higiene para evitar la enfermedad, como el aislamiento y cuarentena, quemar la ropa de los enfermos o llevar máscaras para evitar el contagio.
|
||||||
|
|
||||||
|
Por último (y pasando por alto grandes logros de su vida), publicó el primer tratado sobre musicología de la historia, el "Musurgia Universalis". Aquí, entre otras cosas, diseñó varios instrumentos (como el órgano de agua o el absurdo órgano de gatos), describió de forma detallada instrumentos de su época, escribió el canto de los pájaros y analizó los oídos de humanos y diferentes animales.
|
||||||
|
|
||||||
|
Merece la pena conocer un poco mejor a este "hombre del renacimiento". Desde sus aventuras descendiendo el cráter de un volcán hasta sus divagaciones sobre los jeroglíficos egipcios, pasando por avances médicos y máquinas de torturar gatos, esta persona es un gran ejemplo de inquietud, perseverancia y ese punto de locura que todos deberíamos tener.
|
||||||
@@ -6,6 +6,11 @@ description: >-
|
|||||||
tags:
|
tags:
|
||||||
- katxarreoa
|
- katxarreoa
|
||||||
added: "2025-11-8"
|
added: "2025-11-8"
|
||||||
|
updated: "2026-10-18"
|
||||||
|
---
|
||||||
|
|
||||||
|
**_Oharra: Gaur egun, zerbitzari dedikatu bat daukat kontratatuta. Etxeko zerbitzarian zerbitzuak dauzkat, baina ez da ohikoa interneten argitaratzea._**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Jende guztiak ez du zerbitzari dedikatu bat kontratatuta, baina edonork izan dezake katxarreo bat egiteko grina. Batzuetan gertatzen da proiektutxo bat montatu duzula (webgunetxo bat, web aplikazio bat, zerbitzu bat...) eta etxeko saretik internet bidez lagunei, familiari, kolektibo bati, etab. erakutsi nahi diezula. Igual `.com` domeinutxo bat erosi duzu eta guzti, total, ez dira horren garestiak. Momentu horretan, arazo bat izango duzu: zure internet hornitzaileak ez dizu IP finko bat ematen eta ezinezkoa egingo zaizu munduari erakustea.
|
Jende guztiak ez du zerbitzari dedikatu bat kontratatuta, baina edonork izan dezake katxarreo bat egiteko grina. Batzuetan gertatzen da proiektutxo bat montatu duzula (webgunetxo bat, web aplikazio bat, zerbitzu bat...) eta etxeko saretik internet bidez lagunei, familiari, kolektibo bati, etab. erakutsi nahi diezula. Igual `.com` domeinutxo bat erosi duzu eta guzti, total, ez dira horren garestiak. Momentu horretan, arazo bat izango duzu: zure internet hornitzaileak ez dizu IP finko bat ematen eta ezinezkoa egingo zaizu munduari erakustea.
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: Gilbert Simondon eta teknizitatea
|
||||||
|
slug: gilbert-simondon-teknizitatea
|
||||||
|
description: >-
|
||||||
|
Gilbert Simondon filosofoak sortutako teknizitate kontzeptuari buruzko apunte batzuk.
|
||||||
|
tags:
|
||||||
|
- pertsonala
|
||||||
|
added: "2026-10-12"
|
||||||
|
---
|
||||||
|
|
||||||
|
Marga Padillaren ["Inteligencia Artificial: Jugar o romper la baraja"](https://traficantes.net/libros/inteligencia-artificial-jugar-o-romper-la-baraja) jakin nuen lehenengoz Gilbert Simondon eta teknizitatearen inguruan. Aipatutako liburuan, Margak Carlo Milaniren [La actitud hacker](https://nedediciones.com/tienda/huellas-y-senales/la-actitud-hacker/) gomendatzen du. Bada, liburu horretan ere, aipatzen da kontzeptu hau.
|
||||||
|
|
||||||
|
## Gilbert Simondon
|
||||||
|
|
||||||
|
Gilbert Simondon, 1924tik 1989ra Frantzian bizi zen filosofo bat da. Bere ezaugarri bitxi bat da, filosofia eta psikologian formazioa izateaz gain, aspektu teknikoetan ere formazioa zuela. Horrela, bere ibilbidean bi mundu hauek uztartzeko aukera izan zuen. Tesia defendatu zuen arte, lizeo batean irakasle izan zen eta, horrek, pertsonalki berarekin konektatzea eragin dit.
|
||||||
|
|
||||||
|
## Teknizitatea
|
||||||
|
|
||||||
|
Bere tesi doktoralaren zati batek _Du mode d'existence des objets techniques_ (Objektu teknikoen izateko moduaz) zuen izena. Tesi honetan, teknizitatea zer den adierazten du. Margaren hitzetan, "teknizitatea egiten jakite zehatza, eraginkorra eta gauzatua da" (_"La tecnicidad es el saber hacer concreto, eficaz y materializado"_). Nik, objektu teknikoari so eginez, gizateria eta teknikaren arteko intersekzioa bezala ulertzen dut. Pertsonek teknizitatea alde batera uzten dugunean, teknika baino ikusten ez dugunean, dominazio harremanak sortzen dira. Dominazio harremanak gizakiengandik (Carlo Milaniren hitzetan) izaki teknikoetara eta, honen eraginez, dominazio harremanak gizakiengandik beste gizakietara ere.
|
||||||
|
|
||||||
|
Teknika baten, objektu tekniko baten edo izaki tekniko baten teknizitate maila neurtzeko, hurrengo hiru irizpide hauek hartzen dira kontuan (definizioak, Margaren liburuan agertzen direnen laburpenak dira):
|
||||||
|
|
||||||
|
- **Irekiera**: Barnean dagoena erakustea, maskara kentzea. Objektu teknikoak bere funtzionatzeko era azaltzen duenean, apaingarririk erabili gabe. Lurrinezko lokomotora zahar bat ikusten dugunean, segituan antzeman dezakegu zergatik mugitzen den. Gaur egungo abiadura handiko trenak, ostera, guztiz estalita daude. Igo zaitez, eramango zaitut, baina ez galdetu nola mugitzen naizen. Honek ez du soilik dimentsio estetiko bat. Honek, objektu teknikoa konpontzeko edo hobetzeko bidea irekitzen du.
|
||||||
|
|
||||||
|
- **Indeterminazioa**: Makinan zerbait definitzeke dagoenean. Inguruneari irekiera da. Kanpoan gertatzen denarekiko sentsibilitatea eta erantzuteko gaitasuna. Indeterminazioak, pertsonari makina ulertzeko eta berarekin harremantzeko aukera ematen dio. Harremanaren eta interpretazioaren beharra sortzen duen ziurgabetasun eremu bat irekitzen du. Automatismoetan, ez dago indeterminaziorik.
|
||||||
|
|
||||||
|
- **Lengoaia**: Makinaren eta pertsonaren arteko harreman bat izan dadin, lengoai komun bat partekatu behar dute. Simbolismo komun bat izan behar da, bien arteko komunikazioa ahalbidetzeko. Joan-etorriko komunikazio bide bat egon behar da: izaki teknikoak bere burua ezagutarazteko aukera izan behar du, eta gizakiak ezagutu egin behar du, gidatu ahal izateko.
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
title: Piedras Rai, moneda de cambio inmaterial
|
||||||
|
slug: piedras-rai-moneda-de-cambio-inmaterial
|
||||||
|
description: >-
|
||||||
|
Mikronesiako Rai harriei buruzko apunte batzuk. 2015ean nuen blog-ean idatzitako post bat.
|
||||||
|
tags:
|
||||||
|
- pertsonala
|
||||||
|
added: "2015-9-29"
|
||||||
|
---
|
||||||
|
|
||||||
|
*_Oharra: Honako hau, aspaldi izan nuen blog zahar batean idatzitako post bat da. [Ikusi post-a Wayback Machine-ean](https://web.archive.org/web/20160613074616/http://blog.aitorcurrutia.com/piedras-rai-moneda-de-cambio-inmaterial/)._*
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Yap es una isla de Micronesia. En realidad, son cuatro islas unidas por un arrefice de coral. Tiene una superficie de 102 km² y una población de 6.300 habitantes. Tanto en su escudo como en su bandera, se ve una especie de donut, un círculo con un agujero en medio. Se trata de una piedra Rai, la curiosa moneda utilizada por sus habitantes desde hace más de 2.000 años.
|
||||||
|
|
||||||
|
Son unos discos de piedra caliza obtenida, en su gran mayoría, de la cercana isla de Palaos. Pueden ser de diferentes tamaños, llegando a medir más de 3,5 metros de diámetro y 0,5 metros de ancho y llegando a pesar 4 toneladas. Las más pequeñas miden 7 centímetros de diámetro. Lo curioso de este sistema monetario es que, debido a la dificultad a la hora de transportar los Rai, en las transacciones no llega a haber un intercambio físico del producto por la moneda, sino que se da de forma oral, quedando la propiedad de cada piedra en la memoria colectiva de los habitantes. Llegó a darse un caso de una piedra que se hundió en el océano y, aunque nadie volvió a verla, se considera que está en algún lado y existe, así que sigue "en circulación".
|
||||||
|
|
||||||
|
El valor de estos discos no viene dado por su tamaño, peso o características, sino que lo marca también su historia. Si al transportarlo murió alguien, si perteneció a algún noble o fue transportada por un famoso marinero, el valor de la piedra en cuestión lo marcan las anécdotas que se le atribuyen. Cuando a finales del siglo XIX un náufrago llegó a la isla, ayudó a los nativos a extraer los Rai utilizando tecnología más avanzada procedente de occidente. Esto, produjo una suerte de inflacción, ya que el valor de esas piedras bajó al ser tan fácil conseguirlas.
|
||||||
|
|
||||||
|
Hoy en día las islas de Yap tienen un sistema monetario moderno, aunque siguen utilizándose estos discos de piedra en algunas transacciones tradicionales. Este sistema monetario basado en la tradición oral y la memoria colectiva, hace del patrimonio inmaterial la moneda de cambio. Alguno podría considerarlo un sistema primitivo pero, ¿no es bastante parecido al nuestro?
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
import "../style/fonts.css";
|
import "../style/fonts.css";
|
||||||
import "../style/global.css";
|
import "../style/global.css";
|
||||||
|
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
import { SITE_TITLE } from "../config";
|
||||||
|
|
||||||
const { title, description, image = "/home-blog-card.png" } = Astro.props;
|
const { title, description, image = "/home-blog-card.png" } = Astro.props;
|
||||||
---
|
---
|
||||||
@@ -64,7 +64,7 @@ const { title, description, image = "/home-blog-card.png" } = Astro.props;
|
|||||||
s = d.getElementsByTagName("script")[0];
|
s = d.getElementsByTagName("script")[0];
|
||||||
g.async = true;
|
g.async = true;
|
||||||
g.src = u + "matomo.js";
|
g.src = u + "matomo.js";
|
||||||
s.parentNode.insertBefore(g, s);
|
s.parentNode?.insertBefore(g, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<!-- End Matomo Code -->
|
<!-- End Matomo Code -->
|
||||||
|
|||||||
@@ -1,28 +1,25 @@
|
|||||||
---
|
---
|
||||||
|
import type { CollectionEntry } from "astro:content";
|
||||||
import Post from "../components/Post.astro";
|
import Post from "../components/Post.astro";
|
||||||
|
import PostGrid from "./PostGrid.astro";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
allPosts: CollectionEntry<"posts">[];
|
||||||
|
}
|
||||||
|
|
||||||
const { allPosts } = Astro.props;
|
const { allPosts } = Astro.props;
|
||||||
|
|
||||||
//.sort(() => 0.5 - Math.random()).slice(0, 3);
|
//.sort(() => 0.5 - Math.random()).slice(0, 3);
|
||||||
|
|
||||||
let posts = allPosts
|
let posts = allPosts
|
||||||
.sort(
|
.sort(
|
||||||
(a, b) =>
|
(a, b) =>
|
||||||
new Date(b.data.updated || b.data.added).valueOf() -
|
new Date(b.data.updated || b.data.added).valueOf() -
|
||||||
new Date(a.data.updated || a.data.added).valueOf(),
|
new Date(a.data.updated || a.data.added).valueOf(),
|
||||||
)
|
)
|
||||||
.slice(0, 5);
|
.slice(0, 6);
|
||||||
---
|
---
|
||||||
|
|
||||||
<content>
|
<content>
|
||||||
<ul class="posts-list">
|
<PostGrid posts={posts} />
|
||||||
{
|
|
||||||
posts.map(
|
|
||||||
({
|
|
||||||
url,
|
|
||||||
data: { description, slug, title, tags, added: date },
|
|
||||||
}) => <Post {url} {description} {date} {slug} {title} {tags} />
|
|
||||||
)
|
|
||||||
}
|
|
||||||
</ul>
|
|
||||||
</content>
|
</content>
|
||||||
+33
-23
@@ -1,28 +1,38 @@
|
|||||||
---
|
---
|
||||||
const { slug, title, tags, description, date } = Astro.props;
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
post: CollectionEntry<"posts">;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
post: {
|
||||||
|
data: { slug, title, tags, description, added: date },
|
||||||
|
},
|
||||||
|
}: Props = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<a href={`/post/${slug}/`} class="title">{title}</a>
|
<a href={`/post/${slug}/`} class="title">{title}</a>
|
||||||
<time datetime={date}>
|
<time datetime={date as string}>
|
||||||
{
|
{
|
||||||
new Date(date).toLocaleDateString("eu", {
|
new Date(date).toLocaleDateString("eu", {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
month: "short",
|
month: "short",
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</time>
|
</time>
|
||||||
<br />
|
<br />
|
||||||
{description && <span class="excerpt">{description}</span>}
|
{description && <span class="excerpt">{description}</span>}
|
||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
tags &&
|
tags &&
|
||||||
tags.map((tag) => (
|
tags.map((tag: string) => (
|
||||||
<a class="tag" href={`/tag/${tag}`}>
|
<a class="tag" href={`/tag/${tag}`}>
|
||||||
#{tag}
|
#{tag}
|
||||||
</a>
|
</a>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
---
|
||||||
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
posts: CollectionEntry<"posts">[];
|
||||||
|
}
|
||||||
|
|
||||||
|
const { posts } = Astro.props;
|
||||||
|
|
||||||
|
function getTiltDegrees() {
|
||||||
|
const degreeCollection = [0.5, 1, 1.5, 2];
|
||||||
|
const randomKey = Math.floor(Math.random() * degreeCollection.length);
|
||||||
|
|
||||||
|
return degreeCollection[randomKey];
|
||||||
|
}
|
||||||
|
---
|
||||||
|
|
||||||
|
<ul class="posts-list">
|
||||||
|
{
|
||||||
|
posts.map(({ data: { slug, title, added: date, description, tags } }) => (
|
||||||
|
<li class="post" style={`--tilt: ${getTiltDegrees()}deg;`}>
|
||||||
|
<a href={`/post/${slug}/`} class="title">
|
||||||
|
{title}
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
{description && <span class="excerpt">{description}</span>}
|
||||||
|
<div>
|
||||||
|
{tags &&
|
||||||
|
tags.map((tag: string) => (
|
||||||
|
<a class="tag" href={`/tag/${tag}`}>
|
||||||
|
#{tag}
|
||||||
|
</a>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
ul.posts-list,
|
||||||
|
ul.tags-list {
|
||||||
|
padding: unset;
|
||||||
|
list-style-type: none;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 1em;
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 1.125em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
border: 2px solid var(--blue);
|
||||||
|
background-color: var(--yellow);
|
||||||
|
padding: 0.5em;
|
||||||
|
border-radius: 0.375em;
|
||||||
|
|
||||||
|
transition: transform 0.1s ease-in-out;
|
||||||
|
|
||||||
|
&:nth-child(even) {
|
||||||
|
transform: rotate(calc(-1 * var(--tilt)));
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(odd) {
|
||||||
|
transform: rotate(var(--tilt));
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: rotate(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.tag {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 20px;
|
||||||
|
color: var(--black);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
.tag:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
interface Props {
|
||||||
|
tags: string[];
|
||||||
|
all?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
const { tags, all } = Astro.props;
|
const { tags, all } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
import { defineCollection, z } from "astro:content";
|
|
||||||
|
|
||||||
import { glob } from "astro/loaders";
|
|
||||||
|
|
||||||
const posts = defineCollection({
|
|
||||||
loader: glob({ pattern: "*.md", base: "./posts" }),
|
|
||||||
schema: z.object({
|
|
||||||
title: z.string(),
|
|
||||||
slug: z.string(),
|
|
||||||
description: z.string(),
|
|
||||||
added: z.union([z.string(), z.date()]),
|
|
||||||
updated: z.union([z.string(), z.date()]).optional(),
|
|
||||||
tags: z.array(z.string()),
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
||||||
export const collections = { posts };
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { defineCollection } from "astro:content";
|
||||||
|
import { z } from "astro/zod";
|
||||||
|
|
||||||
|
import { glob } from "astro/loaders";
|
||||||
|
|
||||||
|
const posts = defineCollection({
|
||||||
|
loader: glob({ pattern: "*.md", base: "./posts" }),
|
||||||
|
schema: z.object({
|
||||||
|
title: z.string(),
|
||||||
|
slug: z.string(),
|
||||||
|
description: z.string(),
|
||||||
|
added: z.union([z.string(), z.date()]),
|
||||||
|
updated: z.union([z.string(), z.date()]).optional(),
|
||||||
|
tags: z.array(z.string()),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const collections = { posts };
|
||||||
Vendored
+6
@@ -1 +1,7 @@
|
|||||||
/// <reference types="astro/client" />
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
|
type MatomoCommand = [command: string, ...args: (string | number | boolean)[]];
|
||||||
|
|
||||||
|
interface Window {
|
||||||
|
_paq?: MatomoCommand[];
|
||||||
|
}
|
||||||
@@ -40,9 +40,9 @@ if (updated) {
|
|||||||
{heroImage && <img width={720} height={360} src={heroImage} alt="" />}
|
{heroImage && <img width={720} height={360} src={heroImage} alt="" />}
|
||||||
<h1 class="article-title">{title}</h1>
|
<h1 class="article-title">{title}</h1>
|
||||||
{updated ?
|
{updated ?
|
||||||
<span><time>{added}</time>, azken eguneraketa: <time>{updated}</time></span>
|
<p class="article-date"><time>{added}</time>, azken eguneraketa: <time>{updated}</time></p>
|
||||||
:
|
:
|
||||||
<span>{added && <time>{added}</time>}</span>
|
<p class="article-date">{added && <time>{added}</time>}</p>
|
||||||
}
|
}
|
||||||
<Tags tags={tags} />
|
<Tags tags={tags} />
|
||||||
<hr />
|
<hr />
|
||||||
@@ -55,3 +55,11 @@ if (updated) {
|
|||||||
<ColorScript />
|
<ColorScript />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.article-date {
|
||||||
|
margin: 0;
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--gray);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
import { getCollection, render } from "astro:content";
|
import { type CollectionEntry, getCollection, render } from "astro:content";
|
||||||
import BlogPost from "../../layouts/BlogPost.astro";
|
import BlogPost from "../../layouts/BlogPost.astro";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
let posts = await getCollection("posts");
|
const posts: CollectionEntry<"posts">[] = await getCollection("posts");
|
||||||
|
|
||||||
return posts.map((post) => {
|
return posts.map((post) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
+16
-23
@@ -11,32 +11,25 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../../config";
|
|||||||
let posts = await getCollection("posts");
|
let posts = await getCollection("posts");
|
||||||
|
|
||||||
posts = posts.sort(
|
posts = posts.sort(
|
||||||
(a, b) =>
|
(a, b) =>
|
||||||
new Date(b.data.updated || b.data.added).valueOf() -
|
new Date(b.data.updated || b.data.added).valueOf() -
|
||||||
new Date(a.data.updated || a.data.added).valueOf(),
|
new Date(a.data.updated || a.data.added).valueOf(),
|
||||||
);
|
);
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="eu">
|
<html lang="eu">
|
||||||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
||||||
<body>
|
<body>
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
<content>
|
<content>
|
||||||
<ul class="posts-list">
|
<ul class="posts-list">
|
||||||
{
|
{posts.map((post) => <Post post={post} />)}
|
||||||
posts.map(
|
</ul>
|
||||||
({
|
</content>
|
||||||
url,
|
</main>
|
||||||
data: { description, slug, title, tags, added: date },
|
<Footer />
|
||||||
}) => <Post {description} {date} {slug} {title} {tags} />
|
<ColorScript />
|
||||||
)
|
</body>
|
||||||
}
|
|
||||||
</ul>
|
|
||||||
</content>
|
|
||||||
</main>
|
|
||||||
<Footer />
|
|
||||||
<ColorScript />
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection, type CollectionEntry } 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";
|
||||||
@@ -9,8 +9,8 @@ import ColorScript from "../../components/ColorScript.astro";
|
|||||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../../config";
|
import { SITE_TITLE, SITE_DESCRIPTION } from "../../config";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
let posts = await getCollection("posts");
|
const posts = await getCollection("posts");
|
||||||
const tags = posts.reduce((allTags, post) => {
|
const tags = posts.reduce<Record<string, CollectionEntry<"posts">[]>>((allTags, post) => {
|
||||||
const postTags = post.data.tags;
|
const postTags = post.data.tags;
|
||||||
if (postTags) {
|
if (postTags) {
|
||||||
postTags.forEach((tag) => {
|
postTags.forEach((tag) => {
|
||||||
@@ -50,10 +50,7 @@ let sortedPosts = tag.sort(
|
|||||||
<ul class="tags-list">
|
<ul class="tags-list">
|
||||||
{
|
{
|
||||||
sortedPosts.map(
|
sortedPosts.map(
|
||||||
({
|
(post) => <Post post={post} />
|
||||||
url,
|
|
||||||
data: { description, slug, title, tags, added: date },
|
|
||||||
}) => <Post {url} {description} {date} {slug} {title} {tags} />
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
+137
-137
@@ -4,55 +4,54 @@
|
|||||||
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
|
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
|
||||||
*/
|
*/
|
||||||
:root {
|
:root {
|
||||||
--white: #f8f5f9;
|
--white: #f8f5f9;
|
||||||
--transwhite: rgba(248, 245, 249, 0.7);
|
--transwhite: rgba(248, 245, 249, 0.7);
|
||||||
--moretranswhite: rgba(248, 245, 249, 0.1);
|
--moretranswhite: rgba(248, 245, 249, 0.1);
|
||||||
--black: #30252b;
|
--black: #30252b;
|
||||||
--transblack: rgba(48, 37, 43, 0.7);
|
--transblack: rgba(48, 37, 43, 0.7);
|
||||||
--moretransblack: rgba(48, 37, 43, 0.1);
|
--moretransblack: rgba(48, 37, 43, 0.1);
|
||||||
--gray: #6d5a6d;
|
--gray: #6d5a6d;
|
||||||
|
|
||||||
--highlight: #f1dcff;
|
--highlight: #f1dcff;
|
||||||
--red: #f6a7a3;
|
--red: #f6a7a3;
|
||||||
--green: #c5e5c0;
|
--green: #c5e5c0;
|
||||||
--pink: #e7b0e8;
|
--pink: #e7b0e8;
|
||||||
--blue: #c3b5f7;
|
--blue: #c3b5f7;
|
||||||
--yellow: #fbe4b2;
|
--yellow: #fbe4b2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: var(--highlight);
|
background-color: var(--highlight);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
max-width: 70ch;
|
max-width: 70ch;
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
button,
|
button,
|
||||||
code {
|
code {
|
||||||
font-family: "iA Writer Mono", monospace;
|
font-family: "iA Writer Mono", monospace;
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h1,
|
h1,
|
||||||
strong,
|
strong,
|
||||||
b {
|
b {
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode,
|
body.dark-mode,
|
||||||
@@ -61,53 +60,53 @@ body.dark-mode h1,
|
|||||||
body.dark-mode .go-home,
|
body.dark-mode .go-home,
|
||||||
button.dark-mode,
|
button.dark-mode,
|
||||||
button.dark-mode button {
|
button.dark-mode button {
|
||||||
background: var(--black);
|
background: var(--black);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
body.dark-mode nav {
|
body.dark-mode nav {
|
||||||
background: var(--transblack);
|
background: var(--transblack);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-title {
|
.tag-title {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
::selection {
|
::selection {
|
||||||
background-color: #0f0f0f;
|
background-color: #0f0f0f;
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
:root {
|
:root {
|
||||||
--gray: #a4a4a4;
|
--gray: #a4a4a4;
|
||||||
}
|
}
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
body button,
|
body button,
|
||||||
body h1,
|
body h1,
|
||||||
body strong,
|
body strong,
|
||||||
body b,
|
body b,
|
||||||
body em,
|
body em,
|
||||||
body blockquote,
|
body blockquote,
|
||||||
body .go-home {
|
body .go-home {
|
||||||
background: var(--black);
|
background: var(--black);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
body nav {
|
body nav {
|
||||||
background: var(--transblack);
|
background: var(--transblack);
|
||||||
}
|
}
|
||||||
body code {
|
body code {
|
||||||
background-color: var(--moretranswhite);
|
background-color: var(--moretranswhite);
|
||||||
}
|
}
|
||||||
body a {
|
body a {
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
body .tag {
|
body .tag {
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
}
|
}
|
||||||
.tag-title {
|
.tag-title {
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h2,
|
h2,
|
||||||
@@ -115,165 +114,166 @@ h3,
|
|||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
text-decoration-thickness: 0.3ex;
|
text-decoration-thickness: 0.3ex;
|
||||||
text-underline-offset: 0.3ex;
|
text-underline-offset: 0.3ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: var(--transwhite);
|
background: var(--transwhite);
|
||||||
-webkit-backdrop-filter: blur(1px);
|
-webkit-backdrop-filter: blur(1px);
|
||||||
backdrop-filter: blur(1px);
|
backdrop-filter: blur(1px);
|
||||||
padding-top: 25px;
|
padding-top: 25px;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a:not(:last-child) {
|
nav a:not(:last-child) {
|
||||||
padding: 0 12px 0 0;
|
padding: 0 12px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-top: 1px solid var(--gray);
|
border-top: 1px solid var(--gray);
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.posts-list,
|
ul.posts-list,
|
||||||
ul.tags-list {
|
ul.tags-list {
|
||||||
padding: unset;
|
padding: unset;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
margin: 0 0 30px 0;
|
margin: 0 0 30px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post .title {
|
.post .title {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags {
|
.tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.tag {
|
.tag {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
.tag:hover {
|
.tag:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
input {
|
input {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
main,
|
main,
|
||||||
content {
|
content {
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
background-color: var(--moretransblack);
|
background-color: var(--moretransblack);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
pre > code {
|
pre > code {
|
||||||
all: unset;
|
all: unset;
|
||||||
}
|
}
|
||||||
blockquote {
|
blockquote {
|
||||||
border: 1px solid var(--gray);
|
border: 1px solid var(--gray);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
padding: 2px 0px 2px 20px;
|
padding: 2px 0px 2px 20px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-section {
|
.header-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-frame {
|
.header-frame {
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
}
|
}
|
||||||
|
|
||||||
article :not(.article-title) {
|
article :not(.article-title) {
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-title {
|
.article-title {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin: 0.25em 0;
|
margin: 0.25em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post {
|
.blog-post {
|
||||||
font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
|
font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post > * + * {
|
.blog-post > * + * {
|
||||||
margin-block-start: 1em;
|
margin-block-start: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
time {
|
time {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul li time {
|
ul li time {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
nav a:not(:last-child) {
|
nav a:not(:last-child) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "astro/tsconfigs/strict",
|
||||||
|
"include": [".astro/types.d.ts", "**/*"],
|
||||||
|
"exclude": ["dist"]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user