Move bincio config out of site: sections.json + i.bonsai.md now live in container repo
This commit is contained in:
@@ -1,33 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
const SECTIONS = [
|
import SECTIONS from '../../../config/sections.json';
|
||||||
{ label: 'BincioTech', slug: 'bincio-tech', sub: [
|
|
||||||
{ label: 'Gear e accessori', slug: 'gear-accessori' },
|
|
||||||
{ label: 'Componenti e upgrade', slug: 'componenti-upgrade' },
|
|
||||||
{ label: 'Tecnologia e elettronica', slug: 'tecnologia' },
|
|
||||||
{ label: 'BincioActivity', slug: 'bincio-activity' },
|
|
||||||
]},
|
|
||||||
{ label: 'BincioOfficina', slug: 'bincio-officina', sub: [
|
|
||||||
{ label: 'Manutenzione', slug: 'manutenzione' },
|
|
||||||
{ label: 'Riparazioni', slug: 'riparazioni' },
|
|
||||||
{ label: 'Fai da te', slug: 'fai-da-te' },
|
|
||||||
]},
|
|
||||||
{ label: 'BincioTour', slug: 'bincio-tour', sub: [
|
|
||||||
{ label: 'Tour report', slug: 'tour-report' },
|
|
||||||
{ label: 'Bike packing', slug: 'bike-packing' },
|
|
||||||
{ label: 'Rotte e itinerari', slug: 'rotte-itinerari' },
|
|
||||||
{ label: 'Logistica', slug: 'logistica' },
|
|
||||||
]},
|
|
||||||
{ label: 'BincioCorsa', slug: 'bincio-corsa', sub: [
|
|
||||||
{ label: 'Allenamento', slug: 'allenamento' },
|
|
||||||
{ label: 'Gare e competizioni', slug: 'gare' },
|
|
||||||
{ label: 'Performance', slug: 'performance' },
|
|
||||||
]},
|
|
||||||
{ label: 'BincioAbbigliamento', slug: 'bincio-abbigliamento', sub: [
|
|
||||||
{ label: 'Abbigliamento tecnico', slug: 'tecnico' },
|
|
||||||
{ label: 'Comfort e protezione', slug: 'comfort' },
|
|
||||||
{ label: 'Stagionalità', slug: 'stagionalita' },
|
|
||||||
]},
|
|
||||||
];
|
|
||||||
|
|
||||||
let open = false;
|
let open = false;
|
||||||
let isNew = false;
|
let isNew = false;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const entries = defineCollection({
|
|||||||
const index = defineCollection({
|
const index = defineCollection({
|
||||||
loader: glob({
|
loader: glob({
|
||||||
pattern: '**/*.md',
|
pattern: '**/*.md',
|
||||||
base: './src/content/index',
|
base: '../config',
|
||||||
generateId: ({ entry }) => entry.replace(/\.md$/, ''),
|
generateId: ({ entry }) => entry.replace(/\.md$/, ''),
|
||||||
}),
|
}),
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
title: Bincio Wiki
|
|
||||||
---
|
|
||||||
|
|
||||||
- [[BincioTech]]
|
|
||||||
- [[scelta-bici]]
|
|
||||||
- [[carbonio-vs-alluminio]]
|
|
||||||
- [[marchi-e-brand]]
|
|
||||||
- [[ruote-e-cerchi]]
|
|
||||||
- [[trasmissione-e-catena]]
|
|
||||||
- [[copertoni-tubeless]]
|
|
||||||
- [[attrezzatura-gravel]]
|
|
||||||
- [[accessori-gadget]]
|
|
||||||
- [[gps-e-ciclocomputer]]
|
|
||||||
- [[app-e-servizi]]
|
|
||||||
- [[trasmissioni-tv]]
|
|
||||||
- [[film-podcast]]
|
|
||||||
- [[BincioActivity]]
|
|
||||||
|
|
||||||
- [[BincioOfficina]]
|
|
||||||
- [[freni-a-disco]]
|
|
||||||
- [[manutenzione-cambio]]
|
|
||||||
- [[meccanica-base]]
|
|
||||||
|
|
||||||
- [[BincioTour]]
|
|
||||||
- [[strade-e-percorsi]]
|
|
||||||
- [[bikepacking]]
|
|
||||||
- [[commuting]]
|
|
||||||
- [[uscite-bincio]]
|
|
||||||
- [[regolamentazioni]]
|
|
||||||
- [[mercato-usato]]
|
|
||||||
|
|
||||||
- [[BincioCorsa]]
|
|
||||||
- [[allenamento-e-rulli]]
|
|
||||||
- [[ciclismo-professionistico]]
|
|
||||||
- [[gran-fondo-e-eventi]]
|
|
||||||
- [[nutrizione]]
|
|
||||||
- [[fci-uisp]]
|
|
||||||
|
|
||||||
- [[BincioAbbigliamento]]
|
|
||||||
- [[abbigliamento]]
|
|
||||||
- [[posizione-e-geometria]]
|
|
||||||
- [[video-e-foto]]
|
|
||||||
|
|
||||||
- Documentazione
|
|
||||||
- [[come-funziona-il-giardino]]
|
|
||||||
- [[come-usare-le-categorie]]
|
|
||||||
- [[markdown]]
|
|
||||||
- [[wikirefs]]
|
|
||||||
@@ -2,14 +2,7 @@
|
|||||||
import Base from '../../layouts/Base.astro';
|
import Base from '../../layouts/Base.astro';
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from '../../consts';
|
import { SITE_TITLE, SITE_DESCRIPTION } from '../../consts';
|
||||||
import { getCollection } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
|
import SECTIONS from '../../../../config/sections.json';
|
||||||
const SECTIONS = [
|
|
||||||
{ slug: 'bincio-tech', label: 'BincioTech', desc: 'Tecnologia, gadget e componenti' },
|
|
||||||
{ slug: 'bincio-officina', label: 'BincioOfficina', desc: 'Manutenzione e riparazioni' },
|
|
||||||
{ slug: 'bincio-tour', label: 'BincioTour', desc: 'Tour, bike packing e rotte' },
|
|
||||||
{ slug: 'bincio-corsa', label: 'BincioCorsa', desc: 'Allenamento e gare' },
|
|
||||||
{ slug: 'bincio-abbigliamento', label: 'BincioAbbigliamento', desc: 'Abbigliamento tecnico' },
|
|
||||||
];
|
|
||||||
|
|
||||||
const allEntries = await getCollection('entries');
|
const allEntries = await getCollection('entries');
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,7 @@
|
|||||||
import Base from '../layouts/Base.astro';
|
import Base from '../layouts/Base.astro';
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
|
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
|
||||||
import { getCollection } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
|
import SECTIONS from '../../../config/sections.json';
|
||||||
const SECTIONS = [
|
|
||||||
{ slug: 'bincio-tech', label: 'BincioTech', desc: 'Tecnologia, gadget e componenti' },
|
|
||||||
{ slug: 'bincio-officina', label: 'BincioOfficina', desc: 'Manutenzione e riparazioni' },
|
|
||||||
{ slug: 'bincio-tour', label: 'BincioTour', desc: 'Tour, bike packing e rotte' },
|
|
||||||
{ slug: 'bincio-corsa', label: 'BincioCorsa', desc: 'Allenamento e gare' },
|
|
||||||
{ slug: 'bincio-abbigliamento', label: 'BincioAbbigliamento', desc: 'Abbigliamento tecnico' },
|
|
||||||
];
|
|
||||||
|
|
||||||
const allEntries = await getCollection('entries');
|
const allEntries = await getCollection('entries');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user