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

Closed
wants to merge 1 commit into from

Conversation

bep
Copy link
Member

@bep bep commented Feb 14, 2016

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

Fixes #1855

@bep bep force-pushed the symbolic-content branch 3 times, most recently from b12673b to ffa617f Compare February 14, 2016 21:03
Note: This is for the content roots only, but that should satisfy most needs.

Fixes gohugoio#1855
@spf13
Copy link
Contributor

spf13 commented Mar 21, 2016

merged as e5aa477

@spf13 spf13 closed this Mar 21, 2016
@spf13 spf13 removed the NeedsTriage label Mar 21, 2016
@robstarbuck
Copy link
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.

@bep
Copy link
Member Author

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).

@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 Feb 14, 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.

Symbolic link error shown but link as root folder is followed and works
3 participants