Code Monkey home page Code Monkey logo

Comments (8)

alex-shpak avatar alex-shpak commented on July 22, 2024

Hi!
Can you please extend question?
If I understand you correct:
enableGitInfo is a hugo parameter which used in conjuction with BookEditPath and BookRepo parameters of theme. You need to disable both to hide it completely.

from hugo-book.

hijulian avatar hijulian commented on July 22, 2024

This is my configuration

enableGitInfo: false
  #BookRepo: https://github.com/alex-shpak/hugo-book
  #BookEditPath: edit/master/exampleSite/content

But, still displayed on the website page

image

from hugo-book.

hijulian avatar hijulian commented on July 22, 2024

Locahost:1313 View is normal
This problem occurs after the deployment is successful.

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

I tried to reproduce this and it works as expected for me.
If your website is public I can take a look.

Are you sure you deployed latest generated files and it's not browser cache?

from hugo-book.

hijulian avatar hijulian commented on July 22, 2024

my website: ppages.tk

image

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

I tried all cases with these variables,
behaviour that you see on https://ppages.tk corresponds to:

enableGitInfo: true
#BookRepo: https://github.com/alex-shpak/hugo-book
#BookEditPath: edit/master/exampleSite/content

I'm can suggest that you didn't get clean upload after disabling enableGitInfo

from hugo-book.

hijulian avatar hijulian commented on July 22, 2024

I found the reason.
Since I am using netlify deployment, and the deployment file netlify.toml has the parameter HUGO_ENABLEGITINFO = "true", change HUGO_ENABLEGITINFO = "true" in netlify.toml to HUGO_ENABLEGITINFO = "false".

Https://gohugo.io/hosting-and-deployment/hosting-on-netlify/

[build]
Publish = "public"
Command = "hugo --gc --minify"

[context.production.environment]
HUGO_VERSION = "0.54.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
Command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.54.0"
HUGO_ENV = "production"

[context.deploy-preview]
Command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.54.0"

[context.branch-deploy]
Command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.54.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

👍 I will close this issue then.
Feel free to reopen if you need some more assistance

from hugo-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.