Comments (8)
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.
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
from hugo-book.
Locahost:1313 View is normal
This problem occurs after the deployment is successful.
from hugo-book.
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.
my website: ppages.tk
from hugo-book.
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.
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.
👍 I will close this issue then.
Feel free to reopen if you need some more assistance
from hugo-book.
Related Issues (20)
- Headless branch bundles not rendering in menu in Hugo >0.123.5 HOT 3
- Is there a way to have the homepage (/landing page) in left menu (/book ToC) with subsections? HOT 2
- Main Markdown heading (level 1: #) not in page ToC (right hand side menu) HOT 2
- links in shortcodes 'columns' do not work HOT 4
- change formatting of markdown heading HOT 5
- Would consider doing an 11ty version?
- markup highlight not work HOT 1
- Curious to know how to control the part of each blog that will display in the homepage of posts HOT 3
- Title and date of posts are not shown HOT 1
- Any experience about using Giscus comment in the hugo-book theme? HOT 2
- Adding copy to clipboard support for highlight code blocks HOT 2
- Pager for post collections and archives
- numbered plugin ignores chapters
- Highlighting Color Scheme and Adding Line Numbers to Expand Shortcodes
- Expand shortcode is deprecated. Use 'details' instead.
- no such template "_internal/google_analytics_async.html" HOT 1
- IsMultiLingual error on build HOT 5
- Odd menu issue w/ Book upgrade
- youtube in tab broken
- Strange issues on build...
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-book.