plainwhite-jekyll icon indicating copy to clipboard operation
plainwhite-jekyll copied to clipboard

[Question] How to setup dark mode toggle button?

Open amadeu01 opened this issue 5 years ago • 1 comments

I added the dark_mode: true flag, but it seems that it didn't work, does this have anything to do with other plugins? Do I need an extra step to properly setup?

base-url: /til
title: Today I Learned by Amadeu
description: This is a collection of concise write-ups of small things I've learned day to day across a variety of languages and technologies.
plugins:
   - jekyll-mentions
   - jemoji
   - jekyll-redirect-from
   - jekyll-sitemap
   - jekyll-feed
   - jekyll-seo-tag
   - jekyll-sitemap
   - jekyll-avatar
   - jekyll-include-cache
collections:
  tils:
    output: true
  ios:
    output: true
  swift:
    output: true
  rxjava:
    output: true
  android:
    output: true
  ios-macos:
    output: true
  design-patterns:
    output: true
  algorithm:
    output: true
remote_theme: thelehhman/plainwhite-jekyll
plainwhite:
  name: Amadeu Cavalcante
  tagline: Mobile Developer.
  date_format: "%-d of %b, %Y"
  search: true
  dark_mode: true

  social_links:
    twitter: amadeucavalcant
    github: amadeu01
    linkedIn: in/amadeu01

Am I doing anything wrong ?

amadeu01 avatar Jun 07 '20 22:06 amadeu01

If you are using a fork of this repo, simply pull from it.

git pull origin master

If you built your site with jekyll new and modified Gemfile as in the README, you also needs to pull from this repo as the gem was not yet upgraded to include the Darkmode.

git remote add thelehh https://github.com/thelehhman/plainwhite-jekyll.git
git pull thelehh master --allow-unrelated-histories

There could be some conflicts showing up which you need to handle by hand. And after you've done that, git add . and git commit. Then you should have all the new tricks on this repo.

DotIN13 avatar Jun 08 '20 00:06 DotIN13