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

not able to add styleing on each page using boilerplate #42

Open
prince04kumar opened this issue Jul 13, 2024 · 1 comment
Open

not able to add styleing on each page using boilerplate #42

prince04kumar opened this issue Jul 13, 2024 · 1 comment

Comments

@prince04kumar
Copy link

I am using ejs mate and adding boilerplate templete to each oage but the css which I added to boilerplate is only applicable to one page rest other pages no styling is being added

@Mikevet1984
Copy link

Mikevet1984 commented Aug 27, 2024

It's probably a bug from the package. I faced it as well. Everything fixed when you change the code in the head section of your html document from:
<link rel="stylesheet" href="../folder/stylesheet.css" or href="./stylesheet.css"/>
to:
<link rel="stylesheet" href="/folder/stylesheet.css" or href="/stylesheet.css" />

This fixed everything to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants