-
Notifications
You must be signed in to change notification settings - Fork 3.2k
What are the necessary changes I need to add to update the latest version which supports light and dark theme? #3014
-
Since I have been using this template from last year, there was no dark theme supported at that time. Now, I notice this feature has been added, but what minimal changes I need to do to add this fantastic feature to my website?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 6 replies
-
A minimal amount of changes is tricky since a lot things were adjusted to support themes. However, if you do a pull and haven't made extensive changes to your site, only a couple files are likely to be overwritten: _config.yml
along with the example posts and publication's which are typically just deleted by people. Backing up your _config.yml
before pulling and then just deleting examples may be enough.
Beta Was this translation helpful? Give feedback.
All reactions
-
But what if I have modified a lot of settings, like pages, includes and layouts, what I should do? Still pull from the latest repo? Will that be dangerous?
Beta Was this translation helpful? Give feedback.
All reactions
-
thanks, but seems that it doesn't work and mess up everything. I will give up on this maybe LOL
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, it was a pretty big change to a lot of the core parts of the template. Depending on how many changes you made to your site, it might also make sense to fork a new version and then copy your content into the new version. Hard to say for sure without knowing all of the changes that were made on your end. In general I've been trying to avoid changing anything that would be user content (e.g., in _publications
, _portfolio
, etc.) without providing a means for backwards compatibility.
Beta Was this translation helpful? Give feedback.
All reactions
-
ok, thanks for ur advice! probably I will try one last time LOL
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Just a quick check: what has $muted-text-color become? I couldn't find it in the new code but I did use it in my old code.
Beta Was this translation helpful? Give feedback.
All reactions
-
@mendax1234 Not sure, if it's not listed as a variable for the color codes for the themes (e.g., default light) it might not have been carried over, or was consolidated into another variable.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1