SRI (Subresource Integrity) #280

Merged
paspo merged 4 commits from paspo/bglug.it:integrity into main 2024-10-27 21:48:58 +00:00
11 changed files with 30 additions and 16 deletions

5
assets/js/taglist.js Normal file
View File

@ -0,0 +1,5 @@
function show_all_tags(e) {
Review

Dove viene usata questa funzione javascript? È proprio necessaria?

Dove viene usata questa funzione javascript? È proprio necessaria?
Review

E' quella che si occupa di mostrare/nascondere le tag che hanno meno di un tot di articoli.
E' usata nella taglist che compare nella sidebar di destra nelle sezioni linuxday ed eventi.

E' quella che si occupa di mostrare/nascondere le tag che hanno meno di un tot di articoli. E' usata nella taglist che compare nella sidebar di destra nelle sezioni linuxday ed eventi.
$(".tags-sidebar li").css("display","inline-block");
$(e).css("display","none");
return false;
}

View File

@ -3,7 +3,7 @@ baseURL: https://bglug.it
languageCode: it-IT languageCode: it-IT
title: BgLUG title: BgLUG
subtitle: Bergamo Linux Users Group subtitle: Bergamo Linux Users Group
logo: logo_tondo.svg logo: images/logo_tondo.svg
author: BgLUG author: BgLUG
theme: hugo-arcana theme: hugo-arcana
copyright: 2024 © Bergamo Linux Users Group copyright: 2024 © Bergamo Linux Users Group
@ -259,8 +259,12 @@ imaging:
module: module:
mounts: mounts:
source: static/.well-known - source: static/.well-known
target: static/.well-known target: static/.well-known
- source: static/images
target: static/images
- source: static/favicon
target: static/favicon
pagination: pagination:
pagerSize: 20 pagerSize: 20

View File

@ -1,7 +1,7 @@
--- ---
banner: banner:
enable: true enable: true
image: homepage_banner.webp image: images/homepage_banner.webp
contents: "What is Bergamo Linux Users Group?" contents: "What is Bergamo Linux Users Group?"
button: button:
contents: "Learn more..." contents: "Learn more..."

View File

@ -1,5 +1,5 @@
--- ---
title: "BgLUG --- Bergamo Linux Users Group" title: "BgLUG --- Bergamo Linux Users Group"
image: logo.svg image: images/logo.svg
image_alt: Logo BgLUG image_alt: Logo BgLUG
image_width: 300 image_width: 300

View File

@ -1,7 +1,7 @@
--- ---
banner: banner:
enable: true enable: true
image: homepage_banner.webp image: images/homepage_banner.webp
contents: "Cos'è il Bergamo Linux Users Group?" contents: "Cos'è il Bergamo Linux Users Group?"
button: button:
contents: "Scopri di più..." contents: "Scopri di più..."

View File

@ -1 +1 @@
<link rel="icon" type="image/x-icon" href="/logo_tondo.svg"> <link rel="icon" type="image/x-icon" href="/images/logo_tondo.svg">

View File

@ -3,7 +3,12 @@
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="{{ $style.RelPermalink }}" /> {{ if hugo.IsDevelopment }}
{{- partial "analytics/google-tag-manager/head.html" . -}} <link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ else }}
{{ with $style | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{- partial "head/custom.html" . -}} {{- partial "head/custom.html" . -}}
Outdated
Review

google tag manager???

google tag manager???
Outdated
Review

era nel tema...

effettivamente il suo destino è l'oblio

era nel tema... effettivamente il suo destino è l'oblio
{{- template "_internal/twitter_cards.html" . -}} {{- template "_internal/twitter_cards.html" . -}}

View File

@ -1,12 +1,12 @@
<section> <section>
<script>
function show_all_tags(e) {
$(".tags-sidebar li").css("display","inline-block");
$(e).css("display","none");
return false;
}
</script> {{ $js := resources.Get "js/taglist.js" }}
{{ with $js | minify | fingerprint }}
<script
src="{{ .RelPermalink }}"
integrity="{{ .Data.Integrity }}"
crossorigin="anonymous"></script>
{{ end }}
<h3>Tags</h3> <h3>Tags</h3>
<ul class="tags-sidebar"> <ul class="tags-sidebar">

View File

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB