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

How to customize theme styles? #13

Closed
deniskyashif opened this issue Jan 23, 2019 · 4 comments
Closed

How to customize theme styles? #13

deniskyashif opened this issue Jan 23, 2019 · 4 comments

Comments

@deniskyashif
Copy link

deniskyashif commented Jan 23, 2019

I like this theme a lot, but would like to tweak it a little bit. Is there a way to add my own stylesheet in order to override some of the existing rules or add new ones?

@EmielH
Copy link
Owner

EmielH commented Jan 24, 2019

Thank you for your kind comment! At the moment, it's not possible to add your own stylesheet. I know several themes that offer configuration options to add additional stylesheets; I will look into this.

In the meantime, Hugo allows for overriding files from the theme. For example, to override <yoursite>/themes/tale/assets/scss/tale/_base.scss, create a file <yoursite>/assets/scss/tale/_base.scss and Hugo will use that file instead of the one provided by the theme. Make sure to copy the original styles over to your customized file and then alter them, as overriding is based on entire files only.

@deniskyashif
Copy link
Author

Hey, thanks a for the reply! The way I did it was my css file in assets/, overrode head.html with by copying the one from the theme to /layouts/partials and included my stylesheet there using <link rel="stylesheet" href="{{ "assets/my.css" | relURL }}">.

@EmielH
Copy link
Owner

EmielH commented Jan 25, 2019

That's also a good option! 👍

I'm going to leave this issue open as reminder to add support for custom stylesheets to the theme.

EmielH added a commit that referenced this issue Mar 3, 2019
Put additional CSS files in the static folder of your site and add the
filenames to config.toml in the css parameter.

See #13
@EmielH
Copy link
Owner

EmielH commented Mar 3, 2019

For everyone following this issue: this feature has just been released in version 1.1.0 of the theme.

@EmielH EmielH closed this as completed Mar 3, 2019
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