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

Adding Custom CSS #102

Open
artdias90 opened this issue Aug 6, 2017 · 1 comment
Open

Adding Custom CSS #102

artdias90 opened this issue Aug 6, 2017 · 1 comment

Comments

@artdias90
Copy link

I have followed several guides but nothing works correctly. I have an overrides.css file that I would like to import as part of styles.css, but not sure where to configure this.

I have on my source a static/css/overrides.css file, and I tried to add

[params]
    customCSS = ["css/overrides.css"]

to to themes/ghostwriter/theme.toml , but no success.

It's also ok to include the CSS after styles.css as a separate source.

@roryg
Copy link
Owner

roryg commented Aug 6, 2017

I'm not sure what a .toml file is, I don't think they're supported by Ghost?

The easiest way to include your css file would be just a standard <link> in the html <head> which you can find in the default.hbs file.

e.g. <link rel="stylesheet" type="text/css" href="{{asset "css/overrides.css"}}" />

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