samarsault / plainwhite-jekyll

A configurable portfolio-style jekyll theme for writers.
https://samarsault.com
MIT License
462 stars 483 forks source link

[Question] How to setup dark mode toggle button? #61

Open amadeu01 opened 4 years ago

amadeu01 commented 4 years ago

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 ?

DotIN13 commented 4 years ago

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.