koirand / pulp

Pulp is a Hugo theme for getting a simple, easy-to-read blog site.
https://themes.gohugo.io/pulp/
MIT License
121 stars 68 forks source link

How to enable light color scheme as it's seen in Hugo's theme lists? #78

Open humeyrabue opened 3 years ago

humeyrabue commented 3 years ago

I couldn't find the config for enabling light background. How can I do it?

bruhtus commented 3 years ago

You can enable it by disabling the dark theme on head.html (default derectory is in theme/pulp/layouts/partials/head.html, you should move it to hugo layout and edit it from there).

You can disabling it by giving disabled like this:
<link disabled rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}

search for $cssDark and it's right below that.

For now there's no toggle to switch between light and dark. It works for me, hope it helps.