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
{{ root_url }} always evaluates to empty string in asides #1348
Comments
I am also having trouble with the {{ root_url }} tag. It is blank no matter where I use it. I can't find in the code where root_url is set. Could it be a deprecated feature? |
@wakproductions was having the same issue, eventually found out that root_url is set in the default theme's "default" layout. https://github.com/imathis/octopress/blob/master/.themes/classic/source/_layouts/default.html#L1 |
Thanks @AlexisEvo . But, I already have that in my default.html I am using as well as:
We must be missing something as it still evaluates empty. |
This is an issue in source/_includes/asides/github.html where |
The
{{ root_url }}
expression in asides evaluates to an empty string when deploying to a subdirectory.Normally this bug doesn't reveal any problems, because the
expand_urls
filter catches any text that looks likesrc="/foo"
orhref="/foo"
and prependsroot_url
to the value.However, if
root_url
is being used somewhere other than asrc
orhref
attribute, it causes problems. Example, example.#221 and #758 seem related to this bug. (Despite having been closed, they are still issues)
The text was updated successfully, but these errors were encountered: