pulp icon indicating copy to clipboard operation
pulp copied to clipboard

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

Open humeyrabue opened this issue 4 years ago • 1 comments

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

humeyrabue avatar Sep 26 '20 22:09 humeyrabue

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.

bruhtus avatar Nov 13 '20 22:11 bruhtus