forked from BgLUG/bglug.it
SRI (Subresource Integrity) (#280)
è la cosa per cui i CSS/JS richiamati dall'html hanno un tag con l'hash fixes #283 Reviewed-on: BgLUG/bglug.it#280 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
d4a7dc76ba
commit
cf9b479335
5
assets/js/taglist.js
Normal file
5
assets/js/taglist.js
Normal file
@ -0,0 +1,5 @@
|
||||
function show_all_tags(e) {
|
||||
$(".tags-sidebar li").css("display","inline-block");
|
||||
$(e).css("display","none");
|
||||
return false;
|
||||
}
|
@ -3,7 +3,7 @@ baseURL: https://bglug.it
|
||||
languageCode: it-IT
|
||||
title: BgLUG
|
||||
subtitle: Bergamo Linux Users Group
|
||||
logo: logo_tondo.svg
|
||||
logo: images/logo_tondo.svg
|
||||
author: BgLUG
|
||||
theme: hugo-arcana
|
||||
copyright: 2024 © Bergamo Linux Users Group
|
||||
@ -259,8 +259,12 @@ imaging:
|
||||
|
||||
module:
|
||||
mounts:
|
||||
source: static/.well-known
|
||||
- source: static/.well-known
|
||||
target: static/.well-known
|
||||
- source: static/images
|
||||
target: static/images
|
||||
- source: static/favicon
|
||||
target: static/favicon
|
||||
|
||||
pagination:
|
||||
pagerSize: 20
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.webp
|
||||
image: images/homepage_banner.webp
|
||||
contents: "What is Bergamo Linux Users Group?"
|
||||
button:
|
||||
contents: "Learn more..."
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "BgLUG --- Bergamo Linux Users Group"
|
||||
image: logo.svg
|
||||
image: images/logo.svg
|
||||
image_alt: Logo BgLUG
|
||||
image_width: 300
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.webp
|
||||
image: images/homepage_banner.webp
|
||||
contents: "Cos'è il Bergamo Linux Users Group?"
|
||||
button:
|
||||
contents: "Scopri di più..."
|
||||
|
@ -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">
|
@ -3,7 +3,12 @@
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||
{{- partial "analytics/google-tag-manager/head.html" . -}}
|
||||
{{ if hugo.IsDevelopment }}
|
||||
<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" . -}}
|
||||
{{- template "_internal/twitter_cards.html" . -}}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<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>
|
||||
<ul class="tags-sidebar">
|
||||
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Loading…
x
Reference in New Issue
Block a user