tema hugo-arcana #74
9
.gitmodules
vendored
9
.gitmodules
vendored
@ -1,6 +1,3 @@
|
||||
[submodule "themes/ananke"]
|
||||
path = themes/ananke
|
||||
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
||||
[submodule "themes/tailwind"]
|
||||
path = themes/tailwind
|
||||
url = https://github.com/tomowang/hugo-theme-tailwind.git
|
||||
[submodule "themes/hugo-arcana"]
|
||||
path = themes/hugo-arcana
|
||||
url = https://github.com/half-duplex/hugo-arcana.git
|
24
assets/sass/custom.scss
Normal file
24
assets/sass/custom.scss
Normal file
@ -0,0 +1,24 @@
|
||||
#logo-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
align-content: center;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
#logo-image-wrapper > a {
|
||||
border: 0px solid white;
|
||||
}
|
||||
|
||||
#logo-text-wrapper {
|
||||
padding: 1.3em 0px 0px 20px;
|
||||
}
|
||||
|
||||
.box.post {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.image.left img {
|
||||
margin: 0 auto;
|
||||
}
|
20
assets/sass/libs/_custom_vars.scss
Normal file
20
assets/sass/libs/_custom_vars.scss
Normal file
@ -0,0 +1,20 @@
|
||||
$palette: (
|
||||
bg: #fff,
|
||||
bg-bold: #f7f7f7,
|
||||
fg: #474747,
|
||||
fg-bold: #4c4c4c,
|
||||
fg-light: #999,
|
||||
border: #e0e0e0,
|
||||
|
||||
accent: (
|
||||
bg: #f7990e,
|
||||
fg: #fff
|
||||
),
|
||||
|
||||
obscure: (
|
||||
bg: #333,
|
||||
bg-light: #555,
|
||||
bg-bold: #1f1f1f,
|
||||
fg: #c0c0c0
|
||||
)
|
||||
);
|
139
config.yml
139
config.yml
@ -2,20 +2,36 @@
|
||||
baseURL: https://bglug.it
|
||||
languageCode: it-IT
|
||||
title: BgLUG
|
||||
subtitle: Bergamo Linux Users Group
|
||||
logo: logo_tondo.svg
|
||||
author: BgLUG
|
||||
# theme: hugo-universal-theme
|
||||
theme: tailwind
|
||||
copyright: Bergamo Linux Users Group
|
||||
theme: hugo-arcana
|
||||
copyright: 2024 © Bergamo Linux Users Group
|
||||
paginate: 20
|
||||
timeout: 60s
|
||||
|
||||
params:
|
||||
contentTypeName: posts
|
||||
header:
|
||||
logo: logo_tondo.svg
|
||||
footer:
|
||||
since: 1854
|
||||
poweredby: true
|
||||
description: Bergamo Linux Users Group
|
||||
|
||||
social:
|
||||
- title: Twitter
|
||||
icon: fa-twitter
|
||||
url: https://x.com/bglug_it
|
||||
- title: Facebook
|
||||
icon: fa-facebook-f
|
||||
url: https://www.facebook.com/bglug
|
||||
- title: LinkedIn
|
||||
icon: fa-linkedin
|
||||
url: https://www.linkedin.com/groups/154561/
|
||||
- title: Gitea
|
||||
icon: fa-git-alt
|
||||
url: https://git.libreschool.org/BgLUG
|
||||
- title: YouTube
|
||||
icon: fa-youtube
|
||||
url: https://www.youtube.com/@BglugIt
|
||||
- title: YouTube
|
||||
icon: fa-circle-play
|
||||
url: https://video.linux.it/c/bglug.it/
|
||||
|
||||
taxonomies:
|
||||
tag: tags
|
||||
@ -23,6 +39,7 @@ taxonomies:
|
||||
|
||||
languages:
|
||||
it:
|
||||
weight: 1
|
||||
languageCode: it-IT
|
||||
languageDirection: ltr
|
||||
languageName: Italiano
|
||||
@ -37,29 +54,47 @@ languages:
|
||||
pages: /pagine/
|
||||
menus:
|
||||
main:
|
||||
- identifier: eventi
|
||||
name: Eventi
|
||||
pageRef: events
|
||||
weight: 0
|
||||
- identifier: home
|
||||
name: Home
|
||||
pageRef: /
|
||||
weight: 1
|
||||
- identifier: post
|
||||
name: Post
|
||||
pageRef: posts
|
||||
weight: 1
|
||||
- identifier: dove-siamo
|
||||
name: Dove siamo
|
||||
pageRef: pages/dove-siamo
|
||||
weight: 2
|
||||
- identifier: privacy
|
||||
name: Privacy
|
||||
pageRef: pages/privacy-policy
|
||||
# parent: chi-siamo
|
||||
weight: 3
|
||||
weight: 10
|
||||
- identifier: eventi
|
||||
name: Eventi
|
||||
pageRef: events
|
||||
weight: 20
|
||||
- identifier: about
|
||||
name: L'associazione
|
||||
weight: 30
|
||||
- identifier: chi-siamo
|
||||
name: Chi siamo
|
||||
pageRef: pages/chi-siamo
|
||||
weight: 4
|
||||
weight: 1
|
||||
parent: about
|
||||
weight: 31
|
||||
pageRef: /about/chi-siamo
|
||||
- identifier: dove-siamo
|
||||
name: Dove siamo
|
||||
parent: about
|
||||
pageRef: /about/dove-siamo
|
||||
weight: 32
|
||||
- identifier: organigramma
|
||||
name: Organigramma
|
||||
parent: about
|
||||
pageRef: /about/organigramma
|
||||
weight: 33
|
||||
- identifer: segreteria
|
||||
name: Segreteria
|
||||
parent: about
|
||||
pageRef: /about/segreteria
|
||||
weight: 34
|
||||
- identifier: privacy
|
||||
name: Privacy
|
||||
pageRef: /pages/privacy-policy
|
||||
weight: 40
|
||||
en:
|
||||
weight: 2
|
||||
languageCode: en-US
|
||||
languageDirection: ltr
|
||||
languageName: English
|
||||
@ -74,29 +109,47 @@ languages:
|
||||
pages: /pages/
|
||||
menus:
|
||||
main:
|
||||
- identifier: events
|
||||
name: Events
|
||||
pageRef: events
|
||||
weight: 0
|
||||
- identifier: home
|
||||
name: Home
|
||||
pageRef: /
|
||||
weight: 1
|
||||
- identifier: posts
|
||||
name: Posts
|
||||
pageRef: posts
|
||||
weight: 1
|
||||
- identifier: dove-siamo
|
||||
name: Where
|
||||
pageRef: pages/dove-siamo
|
||||
weight: 2
|
||||
weight: 10
|
||||
- identifier: events
|
||||
name: Events
|
||||
pageRef: events
|
||||
weight: 20
|
||||
- identifier: about
|
||||
name: The association
|
||||
weight: 30
|
||||
- identifier: who
|
||||
parent: about
|
||||
name: Who we are
|
||||
pageRef: /about/who
|
||||
weight: 31
|
||||
- identifier: where
|
||||
parent: about
|
||||
name: Where we are
|
||||
pageRef: /about/where
|
||||
weight: 32
|
||||
- identifier: organigramme
|
||||
parent: about
|
||||
name: Organigramme
|
||||
pageRef: /about/organigramme
|
||||
weight: 33
|
||||
- identifier: secretery
|
||||
parent: about
|
||||
name: Secretery
|
||||
pageRef: /about/secretery
|
||||
weight: 34
|
||||
- identifier: privacy
|
||||
name: Privacy
|
||||
pageRef: pages/privacy-policy
|
||||
weight: 3
|
||||
- identifier: chi-siamo
|
||||
name: Who
|
||||
pageRef: pages/chi-siamo
|
||||
weight: 4
|
||||
weight: 2
|
||||
pageRef: /pages/privacy-policy
|
||||
weight: 40
|
||||
|
||||
defaultcontentlanguage: it
|
||||
defaultContentLanguage: it
|
||||
defaultContentLanguageInSubdir: true
|
||||
|
||||
outputs:
|
||||
|
@ -2,7 +2,6 @@
|
||||
title: Privacy Policy
|
||||
type: page
|
||||
slug: privacy
|
||||
date: 2017-09-24T09:49:49+00:00
|
||||
aliases:
|
||||
- privacy-policy
|
||||
- cookies
|
||||
|
@ -2,7 +2,6 @@
|
||||
title: Privacy e Cookie Policy
|
||||
type: page
|
||||
slug: privacy
|
||||
date: 2017-09-24T09:26:51+00:00
|
||||
aliases:
|
||||
- privacy-policy
|
||||
- cookies
|
||||
|
32
data/en/homepage.yml
Normal file
32
data/en/homepage.yml
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
banner:
|
||||
enable: true
|
||||
image: images/computers_banner.jpg
|
||||
contents: "What is Bergamo Linux Users Group?"
|
||||
button:
|
||||
contents: "Learn more..."
|
||||
url: about/who
|
||||
items:
|
||||
- type: posts
|
||||
content_type: posts
|
||||
max: 6
|
||||
- type: highlights
|
||||
items_per_row: 2
|
||||
items:
|
||||
- title: Events
|
||||
icon: fa-calendar-day
|
||||
content: >
|
||||
Come to our events! You would learn all that there is to know about
|
||||
free software and *open source*
|
||||
- title: Schools
|
||||
icon: fa-graduation-cap
|
||||
url: schools
|
||||
content: >
|
||||
Follow our volunteers on their activities by schools in the province
|
||||
of Bergamo.
|
||||
|
||||
- type: cta
|
||||
contents: Would you like to contribute to our activities?
|
||||
button:
|
||||
contents: "Contact us"
|
||||
url: about/contacts
|
5
data/globalheader.yml
Normal file
5
data/globalheader.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: "BgLUG --- Bergamo Linux Users Group"
|
||||
image: images/logo.svg
|
||||
image_alt: Logo BgLUG
|
||||
image_width: 300
|
33
data/it/homepage.yml
Normal file
33
data/it/homepage.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
banner:
|
||||
enable: true
|
||||
image: images/computers_banner.jpg
|
||||
contents: "Cos'è il Bergamo Linux Users Group?"
|
||||
button:
|
||||
contents: "Scopri di più..."
|
||||
url: about/chi-siamo
|
||||
items:
|
||||
- type: posts
|
||||
content_type: posts
|
||||
max: 6
|
||||
- type: highlights
|
||||
items_per_row: 2
|
||||
items:
|
||||
- title: Eventi
|
||||
icon: fa-calendar-day
|
||||
url: eventi
|
||||
content: >
|
||||
Accorri agli eventi che organizziamo! Avrai modo di imparare tutto
|
||||
quello che c'è da sapere sul software libero o *open source*
|
||||
- title: Scuole
|
||||
icon: fa-graduation-cap
|
||||
url: scuole
|
||||
content: >
|
||||
Segui i nostri volontari nelle loro attività presso le scuole della
|
||||
provincia di Bergamo
|
||||
|
||||
- type: cta
|
||||
contents: Vuoi aiutarci ad organizzare le nostre attività?
|
||||
button:
|
||||
contents: "Contattaci"
|
||||
url: about/contatti
|
54
layouts/_default/shortblock.html
Normal file
54
layouts/_default/shortblock.html
Normal file
@ -0,0 +1,54 @@
|
||||
<section class="col-6 col-12-narrower">
|
||||
<div class="box post">
|
||||
|
||||
{{ $rasters := slice "jpeg" "png" }}
|
||||
{{ $newres := "360x250 smart" }}
|
||||
|
||||
{{/* di default, niente immagine */}}
|
||||
{{- $featimg := "#" -}}
|
||||
|
||||
{{- if .Params.image -}}
|
||||
{{/* se è stata definita un'immagine featured */}}
|
||||
{{- $img := .Page.Resources.GetMatch .Params.image -}}
|
||||
{{- if $img -}}
|
||||
{{- if in $rasters $img.MediaType.SubType -}}
|
||||
{{- $img = $img.Fill $newres -}}
|
||||
{{ end }}
|
||||
{{- $featimg = $img.RelPermalink -}}
|
||||
{{- end -}}
|
||||
{{- else if .Params.featured -}}
|
||||
{{/* se è stata definita un'immagine featured */}}
|
||||
{{- $img := .Page.Resources.GetMatch .Params.featured -}}
|
||||
{{- if $img -}}
|
||||
{{- if in $rasters $img.MediaType.SubType -}}
|
||||
{{- $img = $img.Fill $newres -}}
|
||||
{{ end }}
|
||||
{{- $featimg = $img.RelPermalink -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{/* altrimenti prendo la prima risorsa immagine disponibile */}}
|
||||
{{- $img := (.Page.Resources.ByType "image").GetMatch "**" -}}
|
||||
{{- if $img -}}
|
||||
{{- if in $rasters $img.MediaType.SubType -}}
|
||||
{{- $img = $img.Fill $newres -}}
|
||||
{{ end }}
|
||||
{{- $featimg = $img.RelPermalink -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
|
||||
<div class="inner">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ if .Site.Params.show_post_dates | default true }}
|
||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||
{{ end }}
|
||||
<p>
|
||||
{{ with .Description }}
|
||||
{{- . | truncate 400 }}
|
||||
{{- else }}
|
||||
{{- .Summary | truncate 400 }}
|
||||
{{- end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
31
layouts/_default/single.html
Normal file
31
layouts/_default/single.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p>{{ .Description }}</p>
|
||||
{{ if .Site.Params.show_post_dates | default true }}
|
||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "tags.html" . }}
|
||||
</header>
|
||||
|
||||
{{- if or .Params.image }}
|
||||
|
||||
{{- $featimg := "#" -}}
|
||||
|
||||
{{- if .Params.image -}}
|
||||
{{/* se è stata definita un'immagine featured */}}
|
||||
{{- $img := .Page.Resources.GetMatch .Params.image -}}
|
||||
{{- $featimg = $img.RelPermalink -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Params.featured -}}
|
||||
{{/* se è stata definita un'immagine featured */}}
|
||||
{{- $img := .Page.Resources.GetMatch .Params.featured -}}
|
||||
{{- $featimg = $img.RelPermalink -}}
|
||||
{{- end -}}
|
||||
|
||||
<span class="image featured poppo"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{- .Content }}
|
||||
{{ end }}
|
45
layouts/partials/header.html
Normal file
45
layouts/partials/header.html
Normal file
@ -0,0 +1,45 @@
|
||||
<div id="header">
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
{{- partial "languages.html" . }}
|
||||
{{- end -}}
|
||||
<div id="logo-wrapper">
|
||||
{{- if .Site.Data.globalheader.image }}
|
||||
<div id="logo-image-wrapper">
|
||||
<a href="{{ .Site.BaseURL }}">
|
||||
<img src="{{ .Site.Data.globalheader.image | relURL }}" alt="{{ .Site.Data.globalheader.image_alt }}" width="{{ .Site.Data.globalheader.image_width }}" />
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="logo-text-wrapper">
|
||||
<h1><a href="{{ .Site.BaseURL }}" id="logo">
|
||||
{{ with .Site.Data.globalheader.title }}{{ . | markdownify }}{{ else }}{{ .Site.Title }}{{ end }}
|
||||
</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
{{- range .Site.Menus.main }}
|
||||
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
|
||||
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
|
||||
{{- if .HasChildren -}}
|
||||
<ul>
|
||||
{{- range .Children }}
|
||||
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
|
||||
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
|
||||
{{- if .HasChildren -}}
|
||||
<ul>
|
||||
{{- range .Children }}
|
||||
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
|
||||
{{/* aoeu fix 'current' thing */}}
|
||||
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
BIN
static/banner.jpg
Normal file
BIN
static/banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 MiB |
BIN
static/images/computers_banner.jpg
Normal file
BIN
static/images/computers_banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 228 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
1
themes/hugo-arcana
Submodule
1
themes/hugo-arcana
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4243c0f7c9d13cbc9c68f5afbaba504ffb76ac06
|
@ -1 +0,0 @@
|
||||
Subproject commit 9dc72c5ba801adb5440b598e16604b653a8cca2f
|
Loading…
x
Reference in New Issue
Block a user