Kenneth Gonsalves wrote:
hi,
i know it must be somewhere, but cant find it. How do you refer to the site url in a template? Say my css file is in http://mysite.com/css/layout.css, to make this portable i would have to make the template as:

{{ site_url }}/css/layout.css. how do i do this?

Um... I don't know the actual answer to your question off the bat, but you can use an absolute URI that doesn't contain the site name:

<link rel="stylesheet" type="text/css" href="/css/layout.css" />

Works for me...

-Andy

Reply via email to