-
Notifications
You must be signed in to change notification settings - Fork 9
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
Using an HTML template #5
Labels
bug
Something isn't working
Comments
It should work like that, but looks like it's probably a bug in the config override order. diff --git a/src/themes.jl b/src/themes.jl
index 4f64ead..620e0d8 100644
--- a/src/themes.jl
+++ b/src/themes.jl
@@ -45,7 +45,7 @@ function loadtheme(tree::FileTree, env::AbstractDict)
isfile(file) || error("'$theme' theme does not exist.")
end
dict = TOML.parsefile(string(file))
- env = rmerge(env, Dict("publish" => dict))
+ env = rmerge(Dict("publish" => dict), env)
tree′ = FileTree(dirname(file))
tree′ = FileTrees.load(tree′; lazy=LAZY[]) do file
loadfile(env, joinpath(basename(tree′), path(file))) If you're able to confirm the above diff fixes it that would be great. |
Yes, that worked! Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can HTML templates be used without specifying a custom theme? I have
publish.html.template.file
pointing to adocs/custom.mustache
, but none of the changes appear reflected in the live server. Custom CSS files appear to be working by settingpublish.html.css
.The text was updated successfully, but these errors were encountered: