koirand/pulp

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

Opened this issue · 1 comments

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

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.