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

themeColor isn't use in the background-color #58

Closed
hirefrank opened this issue Apr 6, 2019 · 2 comments
Closed

themeColor isn't use in the background-color #58

hirefrank opened this issue Apr 6, 2019 · 2 comments

Comments

@hirefrank
Copy link

Should it be? I don't see it being passed into the scss as I'd expect.

I just see it in the layouts/_default/baseof.html:

{{- with .Site.Params.themeColor }}
<meta name="theme-color" content="{{.}}">
<meta name="msapplication-TileColor" content="{{.}}">
{{- end }}

I created a workaround in the layouts/partials/extra-head.html:

{{- with .Site.Params.themeColor }}
<style>
html {background-color: {{.}};}
</style>
{{- end }}

Thanks for creating the theme!

@Track3
Copy link
Owner

Track3 commented Apr 8, 2019

themeColor in the config is designed to only affect "theme-color" meta tags, just because people may not want to set this property or they want to use a different color from the page background. If you want to change the background color, you may want to change other color as well, so the better way is to override theme's assets/scss/_predefined.scss, you can just copy this file to site's root (keep the same ralative path), and then edit those color variables.

@hirefrank
Copy link
Author

hirefrank commented Apr 8, 2019 via email

@Track3 Track3 closed this as completed May 4, 2019
olbrew pushed a commit to olbrew/hermit that referenced this issue Apr 28, 2024
Signed-off-by: GitHub Action <action@github.com>
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