rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 777 forks source link

Dark mode didn't work #323

Closed lvntky closed 3 years ago

lvntky commented 3 years ago

hello i'm trying to use the theme as dark mode and when I add defaultTheme = "dark" into my config.yml file, nothing changes. It still light.

Config.yml:

baseurl = "/"
languageCode = "en-us"
theme = "hello-friend-ng"

[params]
  dateform        = "Jan 2, 2006"
  dateformShort   = "Jan 2"
  dateformNum     = "2006-01-02"
  dateformNumTime = "2006-01-02 15:04 -0700"

  # Metadata mostly used in document's head
  description = "Homepage and blog by Djordje Atlialp"
  keywords = "homepage, blog, science, informatics, development, programming"
  images = [""]

  # Directory name of your blog content (default is `content/posts`)
  contentTypeName = "posts"
  # Default theme "light" or "dark"
  defaultTheme = "dark"

Output: image

HacDan commented 3 years ago

I don't believe this param is integrated into this theme. Its parent theme, hello-friend has this feature, but this theme seems to have dropped it. Should be a pretty easy param to add back if you wanted to work on a pull request.