Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scripts): disable google analytics on localhost #123

Merged
merged 1 commit into from
Jan 5, 2019

Conversation

panda-z
Copy link
Contributor

@panda-z panda-z commented Jan 5, 2019

@olOwOlo olOwOlo added this to the 4.1.0 milestone Jan 5, 2019
@olOwOlo
Copy link
Owner

olOwOlo commented Jan 5, 2019

Thank you ̋(ˊ•͈ ꇴ •͈ˋ)

@olOwOlo olOwOlo merged commit 915174f into olOwOlo:master Jan 5, 2019
@panda-z panda-z deleted the disable-ga-localhost branch February 21, 2019 04:52
@opsnull
Copy link

opsnull commented Apr 4, 2019

这个逻辑不对,.Site.IsServer 为 True 只是表明是用了 hugo 内置的 server,不一定是 localhost。

@panda-z
Copy link
Contributor Author

panda-z commented Apr 5, 2019

@opsnull

You're right. This is a tricky way for the desired functionality.

In practice, site on localhost is served by hugo's internal web server for preview. Site on VPS is however served by nginx or apache.

daymade pushed a commit to daymade/hugo-theme-even that referenced this pull request Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants