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 keep_path global variable (#759) #760

Merged
merged 1 commit into from
Jan 10, 2021
Merged

Add keep_path global variable (#759) #760

merged 1 commit into from
Jan 10, 2021

Conversation

tlienart
Copy link
Owner

in config.md users can now define keep_path as a list of things they don't want Franklin to modify the path to (see #759 for context)

@def keep_path = ["foo.html", "bar/baz/"]

what that will do is:

  • the file <folder>/foo.html will be copied to <folder>/__site/foo.html (no injection of index.html)
  • the files in <folder>/bar/baz/ will be copied to <folder>/__site/bar/baz/ without injection of index.html

this also works for .md files btw so

  • the file <folder>/foo.md with this setting will be made available at <domain>/foo.html and not at the default <domain>/foo/index.html (ie <domain>/foo/)

@ViralBShah I'll merge this in master now, and will release it once you've had a chance to play with it; hopefully it should just work.

@tlienart tlienart merged commit 5482e62 into master Jan 10, 2021
@tlienart tlienart mentioned this pull request Jan 11, 2021
38 tasks
@tlienart tlienart deleted the i759 branch April 11, 2021 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant