-
ChetCast
Episode 113: School Day
September 24,2019We just finished our school day, but this podcast was interrupted by an impromptu nap.
-
September 24,2019
Feedbin now offers read later capabilities called Pages. The official app also has a built in share extension in iOS.
Absolutely killer.
-
September 24,2019
Big day.
-
Haiku
September 23,2019Trial and Breakthroughs
CSS galore,
Problems finally resolved.
Total perfection!
-
September 23,2019
Whenever I finish a big customization with my Micro.blog design, I like to write up a blog post and share it with the community.
That little act of sharing paid off today! I overwrote the customizations to my podcast feed, so I pulled up my written instructions and I’m back in business.
-
September 23,2019
Ummm, where did iCloud Tabs go in iOS 13/Safari 13?!
-
Changing Your Site Logo in Dark Mode: A Better Way
September 23,2019A few weeks ago, I wrote about a method that I used to swap out my site logo in dark mode. In that post, I wrote about you can use some custom CSS to display a different logo when a browser was in dark mode.
It wasn’t a very elegant method, but it got the job done. There was, however, a huge drawback. The Kiko theme sets the header logo/blog title as a link back to your site’s root. By replacing the logo in the way I shared in the post referenced above, the link broke. In essence, my blog showed the correct logo in dark mode, but visitors no longer had an easy way back to the home page.
I now have a better way of accomplishing the same objective.
As a reminder, I’m using a custom version of the Kiko theme.
Setting Up Your Site Logo
-
Upload both light and dark mode versions of your logo to your Micro.blog account. Copy the links and have them ready to go.
-
Go in to your custom theme in the Micro.blog Design dashboard. Open the
layouts/partials/header.htmltemplate. -
You’re now going to load your image URLs into the
<a>links<h1 class>area. Just copy and paste the URL for your light mode logo into the place of the URL link currently in the template. Then copy and paste that whole<a>link, and load your dark mode logo URL into the second link. Make sure that you update both alternate descriptions! -
That will put both images in your header, the light and dark versions. Within those links, you’ll need to define a custom class. Simply add
class="logo-dark"immediately after the logo URL and before the</a>tag in the first link. Addclass="logo-light"to the second link, again, immediately before the</a>tag. This is what will allow us to use CSS to get across the finish line. -
Save that template. If you refresh your blog, you should see your light mode logo stacked on top of your dark mode logo in the header.
Now we’re going to get them to show up when we want them to. Go into your Custom CSS on the Micro.blog dashboard Design tab.
We’re going to use the CSS
displayproperty to show and hide the correct logo version in the correct browser light/dark setting.First, let’s focus on the light mode of your website. We don’t want the dark mode logo to show up when the browser is in light mode. We’re going to hide it by adding this CSS:
.logo-dark {display: none;}Now, let’s configure your dark mode logo. In dark mode, we want the light mode logo to hide and the dark mode logo to show up.
Find the
@mediaquery in your CSS where you’ve done all of your other dark mode styling. Add the following CSS within the{}of the@mediaquery:.logo-light { display: none !important; } .logo-dark { display: inline !important; }There you have it! Your site logo will switch as expected between browser light and dark modes. Go ahead and test it out!
My thanks to Manton for giving Micro.blog users the flexibilty to edit and customize blogs from within Micro.blog!
-
-
Reading
September 23,2019
Currently reading: Rebel Yell: The Violence, Passion, and Redemption of Stonewall Jackson by S.C. Gwynne 📚
-
September 23,2019
Sometimes, the best solution is the simplest.
I had no idea that I could class specific links. That technique fixes all of my light mode/dark mode image link issues.
-
September 23,2019
I had an idea this morning while getting ready for the day. What if I used a custom div and the CSS display property to swap out images between light and dark mode?
BOOM! It works!!!
-
September 23,2019
Almost a week of unsweetened coffee. I was missing a real treat! ☕️
-
September 23,2019
I have two HomeKit garage door openers. Siri in iOS 13 CarPlay always helpfully offers me the wrong one.
-
Haiku
September 22,2019Goodbye, Summer
It went by so quick.
Ready for my favorite!
I prefer the cool. 🍂
-
Reading
Book Review: How to Talk so Kids will Listen & Listen so Kids will Talk 📚
September 22,2019We bought this book last year, along with the Whole Brain Child series. The title is tantalizing, yet the content was severely lacking.
The first edition was published in 1980, with a second edition published in 2012. Regrettably, the authors did not take the time to update their theories of parenting based on three decades of practice and research. Many of the academic references used to bolster their ideas were published between 1956-1972. To be sure, there are universals when raising children, but we all benefit from decades of research and advancement. The book doesn’t help its readers collate and put into use those advancements.
Although I would not recommend it to anyone, there were five or six strategies that I will trying to employ in my parenting. So goes this entire category of books. Everyone has an opinion on parenting, and it’s up to the reader to make a decision about what’s right for their family.
Would I recommend: NO
ISBN: 978-1451663884
- September 22,2019
- September 22,2019
-
Reading
September 22,2019
Finished reading: How to Talk So Kids Will Listen & Listen So Kids Will Talk by Adele Faber & Elaine Mazlish 📚
-
September 22,2019
I got a new bow tie with a logo in the print. Apparently they didn’t have anyone who knows how to tie them, because the logo is upside down when the knot is finished.
I did solve it by tying the tie inside out. You can only tell if you look under my collar. Still funny.
-
September 22,2019
Matt Maher on the HomePod while we eat breakfast and get ready for Mass. This is a fantastic Sunday routine. 🎵
- September 22,2019
-
Haiku
September 21,2019 -
September 21,2019
Whenever a website asks me for my Twitter or Facebook URL, what’s to stop me from just putting my Micro.blog link?
- September 21,2019
-
Kiko Footer
September 21,2019I spent some time this week tweaking my footer. I want to spread the word about Micro.blog, but in a way that suits my style. A few folks asked for the code that I used, so here it is!
The first link is to the Micro.blog homepage, while the svg Micro.blog icon links directly to my profile. Make sure to update the link for the svg or your visitors might end up someplace they weren’t expecting!
As a reminder, this is set-up for the Kiko theme, and I have this snippet in the “Edit Footer” area on the Micro.blog Design tab.
<div class="center"> <center style="padding-bottom: 35px;"> <p>An independent website powered by <a href="https://micro.blog">Micro.blog</a></p> <p>© 2019 Chet J. Collins </p> <p style="margin-bottom: 0px;"> <a href="https://micro.blog/chet"> <svg style="width: 24px; height: 24px; fill: #FD9927;" xmlns="[www.w3.org/2000/svg](http://www.w3.org/2000/svg)" viewBox="0 0 482.79 486.16"> <path class="cls-1" d="M495.79,372.06c32-37.64,51.11-85,51.11-136.5C546.9,113,438.82,13.72,305.5,13.72S64.1,113,64.1,235.56,172.18,457.4,305.5,457.4a259.65,259.65,0,0,0,86.2-14.58,7.78,7.78,0,0,1,8.81,2.77c20.17,27.23,51.67,46.38,86.7,54.17a4.79,4.79,0,0,0,4.74-7.65,94.37,94.37,0,0,1,4-120.11ZM420,209.48l-62.17,47.19,22.56,74.72a7.06,7.06,0,0,1-10.79,7.84L305.5,294.68l-64.09,44.55a7.06,7.06,0,0,1-10.79-7.84l22.56-74.72L191,209.48a7.06,7.06,0,0,1,4.12-12.68l78-1.63,25.67-73.71a7.06,7.06,0,0,1,13.33,0l25.67,73.71,78,1.63A7.06,7.06,0,0,1,420,209.48Z" transform="translate(-64.1 -13.72)" /> </svg> </a> </center> </div> -
September 21,2019
There’s a ton of health information on the Internet, but much of it is spurious.
It’d be great if a big research hospital funded a consumer-focused health information website.



