reorx / hugo-PaperModX

A fast, clean, responsive Hugo theme.
https://reorx.github.io/hugo-PaperModX/
MIT License
326 stars 86 forks source link

automatically switch themes #54

Open Neon-44 opened 1 year ago

Neon-44 commented 1 year ago

on Firefox, it doesn't automatically switch themes but you have to reload the page.

would it be possible to automatically recognise when the user switches to dark mode and adjust the webpage?

sukalaper commented 1 year ago

on Firefox, it doesn't automatically switch themes but you have to reload the page.

would it be possible to automatically recognise when the user switches to dark mode and adjust the webpage?

Hello, here I also use Firefox but it works to switch themes well. First, can I have a look at your config.yml?

Neon-44 commented 1 year ago

sure, here you go: left out baseURL etc. but i have declared further up:

baseURL: []
languageCode: []
title: []
theme: PaperModX

copy paste from config (deleted commented out parts for readability)

params:
 TocSide: right
 ShowToc: true
 ShowReadingTime: true
 DefaultTheme: auto

outputs:
  home:
    - HTML
    - RSS
    - JSON # is necessary

i should also note: on Firefox on Android it works, but not on Firefox Flatpak Linux.