Skip to content

Commit

Permalink
solstice theme upstream -> gitlab, removed inline js (CSP)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrokenjester committed Jan 22, 2023
1 parent 0be39c2 commit 7b57f55
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "site/themes/hugo-solstice-theme"]
path = site/themes/hugo-solstice-theme
url = https://github.com/EclipseFdn/hugo-solstice-theme.git
url = https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme.git
8 changes: 8 additions & 0 deletions site/layouts/partials/head_variables.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- avoiding usage of inline javascript; we currently use the third option so only making that one external for now -->
{{ if isset .Params "table_classes" }}
<script>var tableClasses = {{ .Params.table_classes }};</script>
{{ else if isset .Site.Params "table_classes" }}
<script>var tableClasses = {{ .Site.Params.table_classes }};</script>
{{ else }}
<script src="js/hugo-solstice-headvars.js"></script>
{{ end }}
1 change: 1 addition & 0 deletions site/static/js/hugo-solstice-headvars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var tableClasses = "table";
2 changes: 1 addition & 1 deletion site/themes/hugo-solstice-theme
Submodule hugo-solstice-theme updated from 2b762a to 468567

0 comments on commit 7b57f55

Please sign in to comment.