Skip to content

Commit

Permalink
Remove blank spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
athul committed Jan 7, 2025
1 parent 0a426c2 commit 3e78ce4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") (eq .Site.Params.mode "toggle") -}}
{{ $darkstyle := resources.Get "css/dark.css" | fingerprint }}
<link id="darkModeStyle" rel="stylesheet" type="text/css" href="{{ $darkstyle.Permalink }}" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} {{ if eq .Site.Params.mode "toggle" }}disabled{{ end }} />
{{ end }}
{{- end -}}

<!-- Mathjax support -->
{{ if .Site.Params.mathjax | default false }}
{{- if .Site.Params.mathjax | default false -}}
<script type="text/javascript"
{{ if .Site.Params.useCDN | default false -}}
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
{{- else -}}
src="{{ absURL "js/MathJax.js" }}">
{{ end }}
{{- end -}}
</script>
<!-- inline Mathjax -->
<script type="text/x-mathjax-config">
Expand All @@ -73,10 +73,10 @@
}
});
</script>
{{ end }}
{{- end -}}

<!-- KaTeX support -->
{{ if .Site.Params.katex | default false }}
{{- if .Site.Params.katex | default false -}}
{{ if .Site.Params.useCDN | default false -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script>
Expand All @@ -97,7 +97,7 @@
});
});
</script>
{{ end }}
{{- end -}}

<!-- Custom CSS style get applied last -->
{{- if isset .Site.Params "customcss" }}
Expand Down

0 comments on commit 3e78ce4

Please sign in to comment.