-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add .Site.Info.IsServer flag when using built-in Hugo server. #4541
Conversation
hugolib/site.go
Outdated
@@ -380,6 +380,7 @@ type SiteInfo struct { | |||
BuildDrafts bool | |||
canonifyURLs bool | |||
relativeURLs bool | |||
IsServer bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what we want to do is just add a method that returns the value of this{
Line 206 in 3cdf19e
Running bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or more specifc this value:
Line 44 in 0dbf79c
running bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha. Will rework.
[config]: /getting-started/configuration/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is Vim adding a newline at the end.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #4478.
Docs PR coming shortly.
Update:
Docs PR: gohugoio/hugoDocs#430