Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix rss image relying on site.BaseURL (#112)
On v0.131.0+extended I get the following error on the rss-image.xml template: ``` Error: error building site: render: failed to render pages: render of "home" failed: "blog/themes/hermit-v2/layouts/rss.xml:47:7": execute of template failed: template: rss.xml:47:7: executing "rss.xml" at <partial "rss-image.xml" (dict "path" .)>: error calling partial: "blog/themes/hermit-v2/layouts/partials/rss-image.xml:12:32": execute of template failed: template: partials/rss-image.xml:12:32: executing "partials/rss-image.xml" at <.Site.BaseURL>: can't evaluate field Site in type string ``` The .Site is executed on the path property of the image (which is of type string) and does not have a Site key. This is fixed by using the global `site.BaseURL` as used in other partials to overcome this
- Loading branch information