1
0
forked from BgLUG/bglug.it

Compare commits

..

7 Commits

Author SHA1 Message Date
c90b55e9db licenza nel footer (#220)
fix #219

Reviewed-on: BgLUG/bglug.it#220
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-13 19:18:14 +00:00
fb867f876c fix_archetipo_ancora (#221)
fixes #218

Reviewed-on: BgLUG/bglug.it#221
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-13 18:32:20 +00:00
a64f9489f7 visualizzazione autore (#222)
visualizzazione dell'autore sia sulla lista dei post/eventi che nella visualizzazione dell'evento stesso.

supporta markdown

Reviewed-on: BgLUG/bglug.it#222
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-13 18:31:41 +00:00
e28d08b476 prova warning banner alternativo (#217)
Per un riscontro a #216.

L'idea sarebbe di farlo solo in homepage; il warning dovrebbe essere visibile senza prendere troppo a pugni chi se lo trova davanti.

Ho creato un nuovo blocco (o sezione) in homepage, ma non ho ancora finito di sistemare gli stili.

Reviewed-on: BgLUG/bglug.it#217
Reviewed-by: omar <omarl@noreply.libreschool.org>
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-12 19:18:32 +00:00
5e41d042b1 fix archetipo, immagine opzionale (#215)
Reviewed-on: BgLUG/bglug.it#215
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-11 12:31:54 +00:00
100854fefc ultimi eventi in homepage (#213)
fixes #204

Reviewed-on: BgLUG/bglug.it#213
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-11 12:24:37 +00:00
c62206c81c immagine placeholder in elenco post/eventi (#214)
ref #201

Reviewed-on: BgLUG/bglug.it#214
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-11 12:24:13 +00:00
18 changed files with 118 additions and 33 deletions

View File

@ -6,8 +6,9 @@ date: {{ .Date }}
draft: true
slug: "{{ .Name | lower }}"
type: post
image: image.png # if you don't specify an image, the first available is used
image_alt: description of the featured image. The image ratio should be 360x250.
# image: image.png # if you don't specify an image, the first available is used
# image_alt: description of the featured image. The image ratio should be 360x250.
# image_caption: Image credits: author and license
summary: If not present, the content will be used instead
tags:
- eventi

View File

@ -6,8 +6,9 @@ date: {{ .Date }}
draft: true
slug: "{{ .Name | lower }}"
type: post
image: image.png # se non metti un'immagine, viene presa la prima immagine del post
image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250."
# image: image.png # se non metti un'immagine, viene presa la prima immagine del post
# image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250."
# image_caption: Credits dell'immagine: autore e licenza
summary: Se non presente, usa il testo dell'articolo
tags:
- eventi

View File

@ -6,8 +6,9 @@ date: {{ .Date }}
draft: true
slug: "{{ .Name | lower }}"
type: post
image: image.png # if you don't specify an image, the first available is used
image_alt: description of the featured image. The image ratio should be 360x250.
# image: image.png # if you don't specify an image, the first available is used
# image_alt: description of the featured image. The image ratio should be 360x250.
# image_caption: Image credits: author and license
summary: If not present, the content will be used instead
tags:
- news

View File

@ -6,8 +6,9 @@ date: {{ .Date }}
draft: true
slug: "{{ .Name | lower }}"
type: post
image: image.png # se non metti un'immagine, viene presa la prima immagine del post
image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250."
# image: image.png # se non metti un'immagine, viene presa la prima immagine del post
# image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250."
# image_caption: Credits dell'immagine: autore e licenza
summary: Se non presente, usa il testo dell'articolo
tags:
- news

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -120,3 +120,55 @@ div.highlight pre code > span::before {
display: inline-block;
padding-right: 0.2em;
}
/* important warning */
#importantwarning {
text-align: center;
padding: 3.5em 0;
background: _palette(bg);
.container header {
display: flex;
background-color: _palette(accent, bg);
@include vendor('background-image', ('linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15))', 'url("images/bg01.png")'));
border-radius: 12px;
color: _palette(accent, fg);
padding-top: 2em;
padding-bottom: 2em;
vertical-align: middle;
.warningicon {
// float: left;
margin-left: 0.5em;
padding-right: 0.5em;
font-size: 3em;
// text-align: left;
display: flex;
}
h2 {
text-align: left;
vertical-align: middle;
margin-top: auto;
margin-bottom: auto;
display: inline-block;
margin: 0;
}
.button {
background: _palette(accent, fg);
color: _palette(fg);
display: inline-block;
margin-left: auto;
margin-right: 2em;
vertical-align: middle;
text-align: center;
&:hover {
color: _palette(accent, bg) !important;
}
}
}
}

View File

@ -5,7 +5,8 @@ draft: false
slug: "2024-09-09-migrazione-wordpress-hugo"
type: post
image: wordpress-to-hugo.png
image_alt: "Image showing an arrow from wordpress to hugo. credits: amreo, CC0"
image_alt: Image showing an arrow from wordpress to hugo
image_caption: "Image credits: amreo, [CC0](https://creativecommons.org/publicdomain/zero/1.0/)"
summary: Storytelling and details of the migration from Wordpress to Hugo.
tags:
- news

View File

@ -5,7 +5,8 @@ draft: false
slug: "2024-09-09-migrazione-wordpress-hugo"
type: post
image: wordpress-to-hugo.png
image_alt: "Immagine che mostra una freccia da wordpress a hugo. credits: amreo, CC0"
image_alt: Immagine che mostra una freccia da wordpress a hugo
image_caption: "Image credits: amreo, [CC0](https://creativecommons.org/publicdomain/zero/1.0/)"
summary: Racconto e dettagli della migrazione da Wordpress a Hugo.
tags:
- news

View File

@ -1,8 +1,4 @@
---
importantWarning:
enabled: false
link: /en/where
message: "BGLUG is closed on 10 october"
banner:
enable: true
image: homepage_banner.jpg
@ -11,9 +7,20 @@ banner:
contents: "Learn more..."
url: who
items:
- type: posts
- type: important-warning
enabled: false
link:
url: /en/where
title: More info
contents: "BGLUG is closed on 10 october"
- heading: Latest posts
type: posts
content_type: posts
max: 6
- heading: Latest events
type: posts
content_type: events
max: 4
- type: highlights
items_per_row: 2
items:

View File

@ -1,8 +1,4 @@
---
importantWarning:
enabled: false
link: /it/dove-siamo
message: "Il BGLUG è chiuso il 10 ottobre"
banner:
enable: true
image: homepage_banner.jpg
@ -11,9 +7,20 @@ banner:
contents: "Scopri di più..."
url: chi-siamo
items:
- type: posts
- type: important-warning
enabled: false
link:
url: /it/dove-siamo
title: Ulteriori informazioni
contents: "Il BGLUG è chiuso il 10 ottobre"
- heading: Ultimi post
type: posts
content_type: posts
max: 6
- heading: Ultimi Eventi
type: posts
content_type: events
max: 4
- type: highlights
items_per_row: 2
items:

1
i18n/en.yaml Normal file
View File

@ -0,0 +1 @@
footer_license_note: Except where otherwise noted, content on this site is published under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license.

1
i18n/it.yaml Normal file
View File

@ -0,0 +1 @@
footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di questo sito è pubblicato con licenza [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/).

View File

@ -4,8 +4,8 @@
{{ $rasters := slice "jpeg" "png" }}
{{ $newres := "360x250 smart" }}
{{/* di default, niente immagine */}}
{{- $featimg := "#" -}}
{{/* immagine di default */}}
{{- $featimg := (resources.Get "/images/placeholder_elenco.png").RelPermalink -}}
{{- if .Params.image -}}
{{/* se è stata definita un'immagine featured */}}
@ -39,6 +39,9 @@
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
<div class="inner">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{- with .Params.author -}}
di {{ . | markdownify }}<br/>
{{- end -}}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}

View File

@ -2,6 +2,9 @@
<header>
<h2>{{ .Title }}</h2>
<p>{{ .Description }}</p>
{{- with .Params.author -}}
di {{ . | markdownify }}<br/>
{{- end -}}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}

View File

@ -53,5 +53,8 @@
<li>Commit: <a href="{{.URL}}">{{ .AbbreviatedHash }}</a>
{{ end }}
</ul>
<ul class="menu">
<li>{{ T "footer_license_note" | markdownify }}</li>
</ul>
</div>
</div>

View File

@ -1,9 +0,0 @@
<div>
{{ with index ( index .Site.Data .Site.Language.Lang | default .Site.Data ) (.Param "homepage_data" | default "homepage") }}
{{ if .importantWarning.enabled}}
<div style="text-align: center; background-color: yellow; font-weight: bold; font-size: xx-large; padding-top: 10px; padding-bottom: 10px;">
<a href="{{ urls.AbsURL .importantWarning.link }}" style="color: blue; text-decoration: underline;">⚠️⚠️⚠️ {{ .importantWarning.message }} ⚠️⚠️⚠️</a>
</div>
{{- end -}}
{{ end }}
</div>

View File

@ -43,5 +43,3 @@
</ul>
</nav>
</div>
{{- partial "head/important-warning.html" . }}

View File

@ -0,0 +1,13 @@
{{- if .item.enabled -}}
<section id="importantwarning">
<div class="container">
<header>
<i class="warningicon fa-solid fa-triangle-exclamation"></i>
<h2>{{ .item.contents | markdownify }}</h2>
{{- with .item.link }}
<a href="{{ .url }}" class="button">{{ .title }}</a>
{{- end }}
</header>
</div>
</section>
{{- end -}}