Skip to content

Commit

Permalink
Update deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Jul 6, 2024
1 parent f601f15 commit 9af5f75
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{ partial "seo/metadata.html" . }}
{{ block "stylesheets" . }}{{ partial "stylesheets.html" . }}{{ end }}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lunr.min.js" integrity="sha256-DFDZACuFeAqEKv/7Vnu1Tt5ALa58bcWZegGGFNgET8g=" crossorigin="anonymous"></script>
{{ if site.IsServer }}
{{ if hugo.IsServer }}
{{ $lunrStemmerJS := resources.Get "js/lunr.stemmer.support.js" }}
<script src="{{ $lunrStemmerJS.Permalink }}"></script>
{{- if not (eq site.Language.Lang "en") }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div> <!-- /#content -->
{{ end }}
{{ define "footerfiles" }}
{{ if site.IsServer }}
{{ if hugo.IsServer }}
{{ $contactJS := resources.Get "js/contact.js" }}
<script src="{{ $contactJS.Permalink }}"></script>
{{ else }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Javascript to load in footer -->
{{ $params := dict "minify" true }}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
{{ if site.IsServer }}
{{ if hugo.IsServer }}
{{ $frontJS := resources.Get "js/front.js" }}
{{ $moodleboxJS := resources.Get "js/moodlebox.js" }}
{{ $carouselJS := resources.Get "js/carousel.js" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/stylesheets-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ end }}
<!-- Custom fonts and styles for this template -->
{{ $css_options := (dict ) }}
{{ if site.IsServer }}
{{ if hugo.IsServer }}
{{ $cssOpts := merge $css_options (dict "enableSourceMap" true) }}
{{ $forkAwesomeCSS := resources.Get "css/fork-awesome.css" | toCSS $cssOpts }}
{{ $fontsCSS := resources.Get "css/fonts.css" | toCSS $cssOpts }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/stylesheets.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Bootstrap and Fork Awesome css -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<!-- Custom fonts and styles for this template -->
{{ if site.IsServer }}
{{ if hugo.IsServer }}
{{ $cssOpts := (dict "enableSourceMap" true) }}
{{ $forkAwesomeCSS := resources.Get "css/fork-awesome.css" | toCSS $cssOpts }}
{{ $fontsCSS := resources.Get "css/fonts.css" | toCSS $cssOpts }}
Expand Down

0 comments on commit 9af5f75

Please sign in to comment.