Hi. Who knows how to fix it?
meta name="generator" content="Hugo 0.101.0"
.
I dont know how to delete slash there.
About google analitycs need to delete type="application/javascript"
.
How knows how to make it?
right know in google analytics i am using such:
{{ template “_internal/google_analytics.html” . }}
Can i use my own variant?
site: loft-dveri.kiev.ua
Update Hugo to the latest version to remove the trailing slash.
1 Like
In the root of your project directory, create a new file:
layouts/partials/google_analytics.html
Then copy and paste this:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics.html
And modify as needed. That’s how you override any internal template.
1 Like
jmooring
Split this topic
4
With --minify
: set KeepDefaultAttrVals option to false.
Cf. GitHub - tdewolff/minify: Go minifiers for web formats
1 Like
its works. Thanks. I did it
tut
7
The trailing slash was removed in this update
system
Closed
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.