Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amadeu01 opened this issue Jun 7, 2020 · 1 comment
Open

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

amadeu01 opened this issue Jun 7, 2020 · 1 comment

Comments

@amadeu01
Copy link

amadeu01 commented Jun 7, 2020

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
Copy link
Contributor

DotIN13 commented Jun 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants