Skip to content

Commit 30f377d

Browse files
committed
fixup! Add support for Graphviz dot diagrams
This avoids unwanted empty lines when there are no Graphviz diagrams on the page. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7cc7b3a commit 30f377d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
197197
mermaid.initialize({ startOnLoad: true });
198198
</script>
199199
{{ end -}}
200-
{{- if .Page.Store.Get "hasGraphviz" }}
200+
{{- if .Page.Store.Get "hasGraphviz" -}}
201201
<script src="{{ relURL "js/viz-global.js" }}"> </script>
202202
<script type="text/javascript">
203203
(() => {
@@ -211,6 +211,6 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
211211
});
212212
})();
213213
</script>
214-
{{ end }}
214+
{{ end -}}
215215
</html>
216216
{{ end }}

0 commit comments

Comments
 (0)