Skip to content

Commit

Permalink
Whitespace cleanup in layouts/partials/scripts.html (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Aug 17, 2023
1 parent c5fd935 commit daa8c95
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,13 @@
crossorigin="anonymous"></script>
{{ end -}}

<script src='{{ "js/tabpane-persist.js" | relURL }}'></script>

{{- if and .Site.Params.search (isset .Site.Params.search "algolia") -}}
{{ if and .Site.Params.search (isset .Site.Params.search "algolia") -}}
{{ template "algolia/scripts" .Site.Params.search.algolia -}}
{{ end -}}

<script src='{{ "js/tabpane-persist.js" | relURL }}'></script>
{{ partial "hooks/body-end.html" . -}}

{{ define "algolia/scripts" }}
{{ define "algolia/scripts" -}}
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"
integrity="sha512-sQFwlNnBlEyWdI4EwJ9d2wjViu0ZPmIMjPP8kCmBoOjqcljGndf2gb4mldT4ZHxKCQcrdJ0+rxnMFKHuGWB7ag=="
crossorigin="anonymous" ></script>
Expand Down

0 comments on commit daa8c95

Please sign in to comment.