Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What are the necessary changes I need to add to update the latest version which supports light and dark theme? #3014

Unanswered
mendax1234 asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 2 comments 6 replies

Comment options

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.

You must be logged in to vote
0 replies
Comment options

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?

You must be logged in to vote
6 replies
Comment options

thanks, but seems that it doesn't work and mess up everything. I will give up on this maybe LOL

Comment options

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.

Comment options

ok, thanks for ur advice! probably I will try one last time LOL

Comment options

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.

Comment options

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /