Switch profile image according on the theme ? #66
Replies: 2 comments 9 replies
-
|
Hi, @GoustiFruit Thanks for reaching out! I've seen your message, and I appreciate your interest in Frosti. This feature is definitely achievable — you can query the However, I can't provide a detailed solution right now because I'm a student and can only respond after 10 PM Beijing time. Unfortunately, it's a bit too late today for me to write a proper answer. You’re welcome to try exploring this method in the meantime, or I can provide some code later. I just wanted to let you know I've seen your message — I didn't want to leave you feeling ignored. Lastly, thank you for using my theme! I'm currently working on version 3, and perhaps I can include this as a preset feature. Best regards, using translation app |
Beta Was this translation helpful? Give feedback.
-
|
I managed to modify the required files to switch the avatar image between light and dark themes, with Frosti v3 :-) In frosti.config.yaml, I changed the lines: In site.ts: In ProfileBar.astro, I changed the "HTML" part as for the previous version: Modifications in ThemeToggle.astro: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Sorry to disturb you. I've been playing with Frosti, lots of cool features that match to what I'm looking for to build a personal blog. I'd like to know if you have a solution to simply switch the profile image, that I'm using to display the logo of the blog, to adapt it to the dark vs light theme.
I asked different AI tools 😅, none of their solutions work.
To start:
But it doesn't work.
Do you have any idea on how to do it, or if that's even possible ?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions