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

Add .Site.Info.IsServer flag when using built-in Hugo server. #4541

Merged
merged 3 commits into from
Mar 30, 2018

Conversation

FelicianoTech
Copy link
Contributor

@FelicianoTech FelicianoTech commented Mar 27, 2018

Fixes #4478.

Docs PR coming shortly.

Update:

Docs PR: gohugoio/hugoDocs#430

hugolib/site.go Outdated
@@ -380,6 +380,7 @@ type SiteInfo struct {
BuildDrafts bool
canonifyURLs bool
relativeURLs bool
IsServer bool
Copy link
Member

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{

Running bool

Copy link
Member

@bep bep Mar 27, 2018

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:

running bool

Copy link
Contributor Author

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/
Copy link
Contributor Author

@FelicianoTech FelicianoTech Mar 29, 2018

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.

@bep bep added this to the v0.38 milestone Mar 30, 2018
@bep bep merged commit 1823c05 into gohugoio:master Mar 30, 2018
@FelicianoTech FelicianoTech deleted the isserver branch March 3, 2019 02:11
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add .Site.IsServer to determine if the site was built in server mode
2 participants