From b80d8a99248eed7e42325de6ce2beb604c01a4c7 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Fri, 8 Dec 2023 10:58:28 +0100 Subject: [PATCH] menu pagina progetto --- config.yml | 6 ++--- content/project/_index.en.md | 2 +- content/project/_index.it.md | 2 +- content/project/features/index.en.md | 2 ++ content/project/features/index.it.md | 2 ++ content/project/join/index.en.md | 2 ++ content/project/join/index.it.md | 2 ++ content/project/training/index.en.md | 2 ++ content/project/training/index.it.md | 2 ++ layouts/_default/project-home.html | 26 +++++++++++++++++++ .../partials/collegamento-sottopagina.html | 5 ++++ 11 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 layouts/_default/project-home.html create mode 100644 layouts/partials/collegamento-sottopagina.html diff --git a/config.yml b/config.yml index c7cccf4..7d7c8cd 100644 --- a/config.yml +++ b/config.yml @@ -40,10 +40,8 @@ params: - name: github url: https://git.libreschool.org -# no taxonomies (tags, categories...), only pages -disableKinds: - - taxonomy - - term +taxonomies: + tag: tags defaultcontentlanguage: en diff --git a/content/project/_index.en.md b/content/project/_index.en.md index 38c58b6..b552e7c 100644 --- a/content/project/_index.en.md +++ b/content/project/_index.en.md @@ -3,7 +3,7 @@ title: The Project type: page slug: project date: 2016-12-10T15:55:31+00:00 -layout: single +layout: project-home --- **LibreSchool** project main goal is to support schools wishing to migrate or diff --git a/content/project/_index.it.md b/content/project/_index.it.md index 94bd0e2..32f0535 100644 --- a/content/project/_index.it.md +++ b/content/project/_index.it.md @@ -5,7 +5,7 @@ date: 2016-12-10T15:55:31+00:00 slug: progetto aliases: - /progetto -layout: single +layout: project-home --- Il progetto **librescuola** ha come obiettivo supportare le scuole che intendono creare o migrare i laboratori di informatica al sistema operativo **GNU/Linux** ed al _software_ **libero** e **_opensource_**. diff --git a/content/project/features/index.en.md b/content/project/features/index.en.md index cd8fc13..cd70e7b 100644 --- a/content/project/features/index.en.md +++ b/content/project/features/index.en.md @@ -4,6 +4,8 @@ type: page weight: 3 date: 2016-12-10T17:38:20+00:00 slug: features +tags: + - project --- The technical implementation of the project includes the following steps: diff --git a/content/project/features/index.it.md b/content/project/features/index.it.md index 49777c8..3fbfef8 100644 --- a/content/project/features/index.it.md +++ b/content/project/features/index.it.md @@ -6,6 +6,8 @@ date: 2016-12-10T17:38:20+00:00 slug: funzionalita aliases: - /progetto/info-tecniche +tags: + - project --- L’implementazione tecnica del progetto include le seguenti fasi: diff --git a/content/project/join/index.en.md b/content/project/join/index.en.md index cc96ea1..ec871b0 100644 --- a/content/project/join/index.en.md +++ b/content/project/join/index.en.md @@ -6,6 +6,8 @@ date: 2016-12-11T09:36:58+00:00 slug: join aliases: - /join-project +tags: + - project --- ## For schools {#schools} diff --git a/content/project/join/index.it.md b/content/project/join/index.it.md index b506200..5a25ee2 100644 --- a/content/project/join/index.it.md +++ b/content/project/join/index.it.md @@ -5,6 +5,8 @@ date: 2016-12-11T09:36:58+00:00 slug: aderire aliases: - /aderire +tags: + - project --- ## Per le scuole {#per-le-scuole} diff --git a/content/project/training/index.en.md b/content/project/training/index.en.md index f05c06e..6fa1715 100644 --- a/content/project/training/index.en.md +++ b/content/project/training/index.en.md @@ -4,6 +4,8 @@ type: page weight: 2 date: 2016-12-10T17:35:27+00:00 slug: training +tags: + - project --- Migrating to **free or open source software** (FOSS) may lead to small diff --git a/content/project/training/index.it.md b/content/project/training/index.it.md index 6d69793..d0e4fdf 100644 --- a/content/project/training/index.it.md +++ b/content/project/training/index.it.md @@ -6,6 +6,8 @@ date: 2016-12-10T17:35:27+00:00 slug: formazione aliases: - /progetto/formazione +tags: + - project --- La migrazione al software **libero/opensource** può comportare piccole difficoltà iniziali dovute alla mancanza di conoscenza dei nuovi strumenti. diff --git a/layouts/_default/project-home.html b/layouts/_default/project-home.html new file mode 100644 index 0000000..4beaf68 --- /dev/null +++ b/layouts/_default/project-home.html @@ -0,0 +1,26 @@ +{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} +{{ define "main" }} + +
+
+ {{ $subpages := (.Site.Taxonomies.tags.project).Pages | lang.Merge (.Sites.First.Taxonomies.tags.project).Pages }} + {{ range $subpages }} + {{ partial "collegamento-sottopagina.html" (dict "context" . "subpage" $subpages) }} + {{ end }} +
+
+ +
+
+
+

+ {{ .Title }} +

+
+ +
+
+{{ end }} + diff --git a/layouts/partials/collegamento-sottopagina.html b/layouts/partials/collegamento-sottopagina.html new file mode 100644 index 0000000..3831754 --- /dev/null +++ b/layouts/partials/collegamento-sottopagina.html @@ -0,0 +1,5 @@ +

+ + {{ .context.Title }} + +