This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 0f922cc60 SLING-12650 - Newly applied ASF-wide CSP policies break the
Sling website (#193)
0f922cc60 is described below
commit 0f922cc60dbdd75a13963c3949ca37925598162f
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Feb 5 15:27:37 2025 +0100
SLING-12650 - Newly applied ASF-wide CSP policies break the Sling website
(#193)
As an immediate fix, serve the Bulma CSS style sheet from this repository.
We can move to
an NPM/Yarn setup later.
---
src/main/jbake/assets/res/css/bulma.min.css | 1 +
src/main/jbake/templates/header.tpl | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/jbake/assets/res/css/bulma.min.css
b/src/main/jbake/assets/res/css/bulma.min.css
new file mode 100644
index 000000000..434a97896
--- /dev/null
+++ b/src/main/jbake/assets/res/css/bulma.min.css
@@ -0,0 +1 @@
+/*! bulma.io v0.7.5 | MIT License | github.com/jgthms/bulma
*/@-webkit-keyframes
spinAround{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes
spinAround{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.breadcrumb,.button,.delete,.file,.is-unselectable,.modal-close,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.tabs{-w
[...]
\ No newline at end of file
diff --git a/src/main/jbake/templates/header.tpl
b/src/main/jbake/templates/header.tpl
index 54cabbb34..374e2a37b 100644
--- a/src/main/jbake/templates/header.tpl
+++ b/src/main/jbake/templates/header.tpl
@@ -4,7 +4,7 @@ head {
// For now, try to reproduce the layout of the current website, to be
able to compare pages
link(rel:"icon", href:"${config.site_contextPath}favicon.ico") newLine()
- link(rel:"stylesheet",
href:"https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css")
newLine()
+ link(rel:"stylesheet",
href:"${config.site_contextPath}res/css/bulma.min.css") newLine()
link(rel:"stylesheet",
href:"${config.site_contextPath}res/css/site.css") newLine()
// Apache current events
@@ -45,4 +45,4 @@ head {
});
</script>
'''
-}
\ No newline at end of file
+}