-
Notifications
You must be signed in to change notification settings - Fork 972
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
Follow symbolic link directories #503
Comments
I can see the point for the |
A useful consistent policy could be:
Advantages and use case:
The most important is to implement 1) the "follow links behaviour" for symbolic directory links (for files it works already). No 2) is a nice to have |
BTW: I am using a script to assemble assets to be published dynamically using symbolic directory links. If you are interested how it works see 1.3 in A collection of Bash scripts - bash-scripts.pdf. |
@getreu are you willing to work on a PR to add that? |
@Keats : I would like to and had a look into your code by curiousity (knowing that I do not have any free resources until the end of the year). I like the way you modulerized your code base. Nevertheless, my workload does not allow me to accept any additional project now. Sorry. |
I just came across this because I wanted to know if To answer your question: I like to manage my writing in a central location, and it becomes messy when I duplicate blog posts etc. So I'd love to be able to just symlink individual .md files into |
Both initial building and watching for changes already work on master brunch, so the issue can be closed I suppose. |
follow up here in zola.discourse
For the latter I use the attached script. #!/bin/sh
# FROM_DIR must be in the same directory where `config.toml` is.
FROM_DIR="blog3/static-symlinks"
cd "$FROM_DIR"
# create directories
find -L -type d -not -name . -exec mkdir -p "../static/{}" \;
# populate them with hard links
find -L -type f -not -name . -exec ln -L "{}" "../static/{}" \; |
Does |
@pinpox, it was broken in 0.15 but should be fixed in 0.16. Can you check it, please? |
Gutenberg follows symbolic links to files already, but not yet symbolic links to directories.
This feature would be very handy, because then you could just link assets under
/static
wherever they live. The same reasoning applies to/content
and the other directories,The text was updated successfully, but these errors were encountered: