Skip to content

Issue #46 harp compile creates absolute path for css file#47

Open
k5e wants to merge 1 commit intosintaxi:masterfrom
k5e:master
Open

Issue #46 harp compile creates absolute path for css file#47
k5e wants to merge 1 commit intosintaxi:masterfrom
k5e:master

Conversation

@k5e
Copy link

@k5e k5e commented Aug 9, 2013

changed absolute URL of stylesheet to relative.

changed absolute URL of stylesheet to relative.
@sintaxi
Copy link
Owner

sintaxi commented Aug 16, 2013

@k5e Thanks for the pull request. I'm going hold off on merging this because I think you may have uncovered a bigger issue. It appears we may have to get in the habit of making the base path a global in out app. Thoughts?

in the harp.json

{
    "globals":{
       "base": "/"
    }
}

in _layout.jade

  link(rel="icon", href="#{ base }favicon.png")

@SyntaxStacks
Copy link

Consider using the HTML Base tag in your app
http://www.w3schools.com/tags/tag_base.asp

That way there is no need to add #{base} in every link/image/script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants