Comments (3)
I know what should I do. I only need rewrite the baseof.html in my own layouts.Thanks a lot.
from hugo-theme-dream.
Refer to https://gohugo.io/templates/internal#google-analytics, upgrade Hugo to at least v0.82.0 to use v4 version.
from hugo-theme-dream.
Yes, I read the document above, and my hugo version is hugo v0.88.1+extended. But when I run hugo -D, It dosen`t seem to work.
So I use v4 by changing the code
{{ if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
to
{{ if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
where the code at themes/dream/layouts/_default/baseof.html.
but I am not sure is it the simplest way ? Thanks for your answer.
from hugo-theme-dream.
Related Issues (20)
- JS is loaded from CDN and has no SRI HOT 5
- Lack of Subresource Integrity HOT 1
- 无法将最后修改时间设置为git提交时间 HOT 4
- Is it possible to use 2 different avatars on Home and About/flip? HOT 4
- i18n should be contained in 1 folder HOT 3
- Plan to rewrite with Bulma HOT 4
- Clicking on tags brings up broken XML page HOT 9
- Featured posts HOT 4
- Series Taxonomy HOT 3
- Search doesn't work in production HOT 3
- Any way to integrate terminal like code UI for sharing snippets? HOT 1
- Active fork HOT 3
- Demo is 404 HOT 2
- Stale bot spam HOT 2
- HUGO更新到v0.124.1之后生成站点出现报错 HOT 3
- 你好使用了您的主题,非常好 ,不过现在遇到了一个问题 HOT 14
- 请问首页怎样才能选择显示多少篇文章 HOT 6
- Support TOC in v3 HOT 2
- 请问我打开了TOC 不知道为什么页面并不显示目录。 HOT 13
- markdown的代码块部分缺少了滚动条 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-dream.