diff --git a/package.json b/package.json index 9ed46d1..2b36070 100644 --- a/package.json +++ b/package.json @@ -45,4 +45,4 @@ "type": "git", "url": "https://github.com/kowalski7cc/gatsby-starter-kowalski7cc" } -} \ No newline at end of file +} diff --git a/src/assets/siteMetadata.yml b/src/assets/siteMetadata.yml index d0547da..cb8c6a1 100644 --- a/src/assets/siteMetadata.yml +++ b/src/assets/siteMetadata.yml @@ -2,30 +2,30 @@ description: >- Manifestazione italiana dedicata a GNU/Linux, al software libero, alla cultura aperta e alla condivisione. keywords: "Linux Day, Milano, GNU, GNU/Linux, Open Source, Software Libero, Condivisione" -author: "ILS Milano (https://poul.org/)" +author: "ILS Milano (POuL & UnixMiB)" theme: "#343a40" siteUrl: "https://linuxdaymilano.org/" switches: - schedule: true - cfp: false + schedule: false + cfp: true cfp_submit: false - cfs: false - stand_submit: false + cfs: true + stand_submit: true sponsor_submit: true year_switcher: true - sponsors: true + sponsors: false event: - date: 2025-10-25T07:00:00.000+02:00 + date: 2026-10-24T07:00:00.000+02:00 dateOptions: weekday: long year: numeric month: long day: numeric time: "9:00" - organizer: POuL + organizer: POuL & UnixMiB topic: "" - cfp: "https://survey.linux.it/index.php/653441?lang=it" - cfs: "https://survey.linux.it/index.php/511682?lang=it" + cfp: "https://survey.linux.it/index.php/831181?lang=it" + cfs: "https://survey.linux.it/index.php/636347?lang=it" sponsor: "https://www.ils.org/sponsorizzazioni/" arguments: - "Linux, software e hardware Open Source" @@ -35,10 +35,10 @@ event: - L'apprendimento mediante il Do It Yourself - Programmazione e tecniche di sviluppo contacts: - email: linuxday@unixmib.org + email: info@linuxdaymilano.org website: "https://poul.org/" place: name: "Politecnico di Milano, Campus Leonardo" - street: "Piazza Leonardo da Vinci, 32" - building: Edificio 3 - Campus Leonardo + street: "Via Bonardi 9" + building: Edificio 13 - Trifoglio - Campus via Bonardi cap: 20133 Milano MI diff --git a/src/components/header.jsx b/src/components/header.jsx index aee4cf3..f88b7d3 100644 --- a/src/components/header.jsx +++ b/src/components/header.jsx @@ -7,7 +7,9 @@ const Header = ({ allSchedulesYaml }) => { const year = siteMetadata.event.date.getFullYear(); const organizer = siteMetadata.organizer; const switches = siteMetadata.switches; - const previousYear = allSchedulesYaml.map((node) => node.data.year)[1]; + const previousYear = allSchedulesYaml + .map((node) => node.data.year) + .reverse()[1]; const params = switches.schedule ? "" : "?" + new URLSearchParams({ year: previousYear }); diff --git a/src/layouts/schedule.jsx b/src/layouts/schedule.jsx index 6560f57..ef9b7eb 100644 --- a/src/layouts/schedule.jsx +++ b/src/layouts/schedule.jsx @@ -222,113 +222,106 @@ const Page = ({ allSchedules }) => { if ("development" === activeEnv) console.log("schedData: ", schedData); return ( - <> -
- -
-

- Programma della giornata -

+
+ +
+

Programma della giornata

-
- - - {siteMetadata.switches.year_switcher ? ( - - - Anno {schedData?.year} - - - {allSchedules.map((s, i) => ( - { - //TODO - const url = new URL(window.location); - url.searchParams.set("year", s.data.year); - window.history.pushState({}, "", url); - setSchedData(allSchedules[i].data); - }} - > - {s.data.year} - - ))} - - - ) : ( - +
+ + + {siteMetadata.switches.year_switcher ? ( + + Anno {schedData?.year} - - )} -
+ + + {allSchedules.map((s, i) => ( + { + //TODO + const url = new URL(window.location); + url.searchParams.set("year", s.data.year); + window.history.pushState({}, "", url); + setSchedData(allSchedules[i].data); + }} + > + {s.data.year} + + ))} + + + ) : ( + + Anno {schedData?.year} + + )}
+
- {schedData?.schedule.length ? ( - { - setStarredTalks((current) => { - let next; + {schedData.schedule?.length ? ( + { + setStarredTalks((current) => { + let next; - if (current[schedData?.year]?.includes(title)) { - next = { - ...current, - [schedData?.year]: current[schedData?.year].filter( - (t) => t !== title - ), - }; - } else { - next = { - ...current, - [schedData?.year]: [ - ...(current[schedData?.year] || []), - title, - ], - }; - } + if (current[schedData?.year]?.includes(title)) { + next = { + ...current, + [schedData?.year]: current[schedData?.year].filter( + (t) => t !== title + ), + }; + } else { + next = { + ...current, + [schedData?.year]: [ + ...(current[schedData?.year] || []), + title, + ], + }; + } - localStorage.setItem("starredTalks", JSON.stringify(next)); + localStorage.setItem("starredTalks", JSON.stringify(next)); - return next; - }); - }} - key={schedData?.schedule} - /> - ) : ( -
- -

- Ci sono eventi per questa giornata, sono solo in fase di - organizzazione. -

-

- Puoi usare il selettore per leggere il programma degli anni - precedenti o ricontrolla tra qualche giorno! -

-
- )} -
-
- + return next; + }); + }} + key={schedData?.schedule} + /> + ) : ( +
+ +

+ Ci sono eventi per questa giornata, sono solo in fase di + organizzazione. +

+

+ Puoi usare il selettore per leggere il programma degli anni + precedenti o ricontrolla tra qualche giorno! +

+
+ )} + +
); }; diff --git a/src/pages/codeofconduct.astro b/src/pages/codeofconduct.astro index 5ea73f5..5973cb3 100644 --- a/src/pages/codeofconduct.astro +++ b/src/pages/codeofconduct.astro @@ -10,8 +10,8 @@ import { Container } from "react-bootstrap";

Versione Italiana

Tutti i partecipanti del Linux Day Milano sono tenuti ad attenersi al - seguente codice di condotta. I volontari del team UnixMiB faranno - rispettare questo codice durante tutta la conferenza. + seguente codice di condotta. I volontari del team degli organizzatori + faranno rispettare questo codice durante tutta la conferenza.