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

Projects
None yet
2 participants
@felicianotech
Contributor

felicianotech commented Mar 27, 2018

Fixes #4478.

Docs PR coming shortly.

Update:

Docs PR: gohugoio/hugoDocs#430

@@ -380,6 +380,7 @@ type SiteInfo struct {
BuildDrafts bool
canonifyURLs bool
relativeURLs bool
IsServer bool

This comment has been minimized.

@bep

bep Mar 27, 2018

Member

I think what we want to do is just add a method that returns the value of this{

Running bool

This comment has been minimized.

@bep

bep Mar 27, 2018

Member

Or more specifc this value:

running bool

This comment has been minimized.

@felicianotech

felicianotech Mar 28, 2018

Contributor

Ah gotcha. Will rework.

[config]: /getting-started/configuration/

This comment has been minimized.

@felicianotech

felicianotech Mar 29, 2018

Contributor

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

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
license/cla Contributor License Agreement is signed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment