I\'ve been searching in the examples on the GitHub but I couldn\'t find how to load a simple css file into my layout. My first thought was doing something like this li
try: link(rel='stylesheet', href='/stylesheets/style.css')
if you're using Jade with connect-assets, you can just use:
!= css('stylesheetName')
where stylesheetName.css
is in your assets/css/
directory.
I think you need to include the relationship. Try
link(rel='stylesheet', href='my.css')
This works:
html
head
style
include ./style.css
body
You need to add the type:
link(rel='stylesheet', href='my.css', type='text/css' )