Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

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