Commit ce18a104 authored by Kaushal Modi's avatar Kaushal Modi

Add type="application/javascript" to inline script

.. so that the new --minify option in Hugo v0.47+ can minify those.
parent 88fbe6a4
{{ $jquery_slim_js := resources.Get "js/libs/jquery/3.3.1/jquery.slim.min.js" | minify | fingerprint }}
<script src="{{ $jquery_slim_js.RelPermalink }}"></script>
<script>(function() {
<script type="application/javascript">(function() {
var $toc = $('#TableOfContents');
if ($toc.length > 0) {
var $window = $(window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment