diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 1ee803b22..cd76b2f61 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,13 +1,5 @@
-{{ $needKaTeX := or .Site.Params.katex.enable .Params.math .Params.chem -}}
-{{ $needmhchem := or .Site.Params.katex.mhchem.enable .Params.chem -}}
-{{ if ge hugo.Version "0.93.0" -}}
- {{ $needKaTeX = or $needKaTeX (.Page.Store.Get "hasKaTeX") (.Page.Store.Get "hasmhchem") -}}
- {{ $needmhchem = or $needmhchem (.Page.Store.Get "hasmhchem") -}}
-{{ else -}}
- {{ if or $needKaTeX $needmhchem -}}
- {{ warnf "Outdated Hugo version %s, consider upgrading to make full use of all theme features" hugo.Version }}
- {{ end -}}
-{{ end -}}
+{{ $needKaTeX := or .Params.math .Site.Params.katex.enable .Params.chem .Site.Params.chem (.Page.Store.Get "hasKaTeX") (.Page.Store.Get "hasmhchem") -}}
+{{ $needmhchem := or .Params.chem .Site.Params.katex.mhchem.enable (.Page.Store.Get "hasmhchem") -}}
{{ if .Site.Params.markmap.enable -}}