Skip to content

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

Open
k5e wants to merge 1 commit into
sintaxi:masterfrom
k5e:master
Open

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

Conversation

@k5e

@k5e k5e commented Aug 9, 2013

Copy link
Copy Markdown

changed absolute URL of stylesheet to relative.

changed absolute URL of stylesheet to relative.
@sintaxi

sintaxi commented Aug 16, 2013

Copy link
Copy Markdown
Owner

@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
Copy Markdown

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