Hi,
I'm trying to create a macro partial in Umbraco 5, and add css stylessheets and javascripts to the <head> element from the macro partial.
I have tried to add a @RenderSection("head", required: false) in my layout template, and add a
@section head
{
<link rel="stylesheet" href="@Url.Content("~/Content/Styles/article.css")" type="text/css" />
}
to my macro partial, but the above codesnippet does not get added to the rendered page.
Does any one have a solution to my problem or some kind of workarround?
/Kim
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/29815-add-css-stylesheet-from-macro-partial-in-umbraco-5