-
Notifications
You must be signed in to change notification settings - Fork 93
Added the ability to toggle the header icon on or off using the theme #74
base: master
Are you sure you want to change the base?
Added the ability to toggle the header icon on or off using the theme #74
Conversation
@spbyrne I'd love to get upgraded permissions for this project. This project doesn't appear to be dead, but I don't see anyone else who is interested in it right now. I am interested in modern FOSS blogging platforms, and I'd love to work on this starter as a side-project. I'd love to solve some of the problems that remain here out of curiosity and as a learning exercise. I'm a silicon valley veteran who recently abandoned a lifelong love of WordPress and is thinking a lot about what the future of blogging looks like - I think it looks something like Gatsby and Tina; maybe I'm alone in this? This is me: https://evanxmerz.com/ Mainly I want to fix the linting issues, and upgrade old packages (https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/), and I don't feel like anyone else is interested in maintaining this starter right now. |
Hey Paul, in order to add more flexibility, as Scott mentioned in #16 it would be nice to add more options as we did for the demo Feel free to take a look at the source for inspiration: https://github.com/tinacms/tina-demo |
@DirtyF Thanks for this feedback. I considered this. There are two issues with this from a usability perspective, and one from a technical perspective.
The color option is a good idea though. This weekend I will see if I can make the dynamic import work. Maybe I will add another PR for a icon color option. I tend to think that this icon, along with the dark mode toggle, are over-designing though. Does WordPress have a hardcoded icon or darkmode toggle? No. Of course not. Most sites aren't going to want either of those things the way that they are implemented in the existing project. Not that this site is supposed to be WordPress, I know that's not the goal, but just from a general problem-solving perspective, the existing implementation adds little to no value to implementers. Both the icon and the dark mode toggle are trivial to implement from a UI perspective (given that the dark mode CSS selectors already exist), and since they are hardcoded in there they actually require coding work to remove them, so you could make the argument that they are anti-patterns or anti-features in this project. Sorry for the essay! ;) This is not a criticism of you or this project. This is an interesting problem that I have enjoyed thinking about. |
@DirtyF @spbyrne Yeah, actually the more I look at this implementation the more problems I see.
So I actually think that there should be two different options here, rather than expanding on this existing implementation. There should be an option for a header logo that could connect to the existing Logo field (although that should be an image field). There should be a separate option for the favicon, which can be built off the existing icon implementation, but maybe using a dynamic import. Yeah, so this PR is sort of re-arranging the deck chairs on the Titanic, because this isn't the right way to go in the first place. |
This addresses this old issue: #16
I added a toggle to allow users to toggle off the icon that is shown in the header by default. Along with the pull request to disable the dark mode toggle (#65), this gives users full control over what is shown in the header.
Here's what the home page looks like without the header icon.
![showIcon-off](https://user-images.githubusercontent.com/11086549/112735116-66f7f000-8f07-11eb-92f0-ed5df91044a2.jpg)
Here's the theme toggle.
![showIcon-toggle](https://user-images.githubusercontent.com/11086549/112735114-60697880-8f07-11eb-94f8-e3b0bc4d54f8.jpg)