mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 13:39:55 +03:00
Removed unnecessary math.js load
This commit is contained in:
parent
e8307cdcac
commit
96d6b7d3f4
4 changed files with 9 additions and 15 deletions
|
@ -94,6 +94,7 @@ summary: "A search engine overview and Rust implementation."
|
|||
toc: true
|
||||
readTime: true
|
||||
autonumber: true
|
||||
math: true
|
||||
---
|
||||
|
||||
Your content...
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
{{ if .Param "math" }}
|
||||
{{ partialCached "math.html" . }}
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
{{ $theme := "auto"}}
|
||||
|
@ -28,7 +25,7 @@
|
|||
</div>
|
||||
|
||||
<footer>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partialCached "footer.html" . }}
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
@ -71,7 +68,6 @@
|
|||
|
||||
setTheme();
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
|
||||
{{ if .Param "math" }}
|
||||
{{ partialCached "math.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
{{- with resources.Get "js/main.js" }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
{{- with . | js.Build }}
|
||||
<script src="{{ .RelPermalink }}"></script>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- $opts := dict "minify" true }}
|
||||
{{- with . | js.Build $opts | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $opts := dict "minify" true }}
|
||||
{{- with . | js.Build $opts | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue