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 support for symbolic links for content, layout, static, theme #1857

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@bep
Member

bep commented Feb 14, 2016

Note: This is for the content roots only, but that should satisfy most needs.

Fixes #1855

Add support for symbolic links for content, layout, static, theme
Note: This is for the content roots only, but that should satisfy most needs.

Fixes #1855

@bep bep added the NeedsReview label Feb 18, 2016

@spf13

This comment has been minimized.

Show comment
Hide comment
@spf13

spf13 Mar 21, 2016

Contributor

merged as e5aa477

Contributor

spf13 commented Mar 21, 2016

merged as e5aa477

@spf13 spf13 closed this Mar 21, 2016

@spf13 spf13 removed the NeedsReview label Mar 21, 2016

@robstarbuck

This comment has been minimized.

Show comment
Hide comment
@robstarbuck

robstarbuck Jul 1, 2016

Contributor

This suggests that the content folder can be symlinked.

So my symlink points to a parent directory (I have tried other locations):

content -> ../content

It's populated with test files:

.
├── file-01.md
├── file-02.md
└── post
    ├── file-03.md
    └── file-04.md

But a build results in the following output:

$ hugo server --buildDrafts
Started building site
0 draft content
0 future content
0 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 21 ms
Watching for changes in /{DIRECTORY_NAME_HERE}/{data,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

I notice the content folder isn't mentioned and there's a 0 by draft content.

Am I going wrong somewhere? I'm using v0.16 on OSX.

Thanks.

Contributor

robstarbuck commented Jul 1, 2016

This suggests that the content folder can be symlinked.

So my symlink points to a parent directory (I have tried other locations):

content -> ../content

It's populated with test files:

.
├── file-01.md
├── file-02.md
└── post
    ├── file-03.md
    └── file-04.md

But a build results in the following output:

$ hugo server --buildDrafts
Started building site
0 draft content
0 future content
0 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 21 ms
Watching for changes in /{DIRECTORY_NAME_HERE}/{data,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

I notice the content folder isn't mentioned and there's a 0 by draft content.

Am I going wrong somewhere? I'm using v0.16 on OSX.

Thanks.

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Jul 1, 2016

Member

Please use http://discuss.gohugo.io/ for questions -- if you believe it is a bug, please create a new one, I'm not reading old stuff (or, I did now, but in general).

Member

bep commented Jul 1, 2016

Please use http://discuss.gohugo.io/ for questions -- if you believe it is a bug, please create a new one, I'm not reading old stuff (or, I did now, but in general).

@bep bep deleted the bep:symbolic-content branch Apr 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment