Left over skirt steak and sweet potatoes hash....it's what's for breakfast.
Welcome to My Blog.
Here, you will find posts, links, and more about code (primarily Ruby), business (bootstrapped SaaS), and a little of everything in between.
iOS Shortcut for Following Someone on a Different Mastodon Server
Once added to your Shortcuts app, you can share a Profile (or webpage or text that contains a profile link or username) to this Shortcut to be taken to the Follow confirmation page without ever copying or pasting anything. via: Justin Velgos
Very handy. Ideally, this will become a native feature in iOS someday.
Adding Paging Titles for Short Micro.blog Posts
I noticed posts without titles do not have proper HTML Title tags on my new Micro.blog.
Even as I type this, I kind of get it. How do you have a title without a title? 🤔
Many services rely on a title element when building links, and seeing "ScottW's Blog" (or whatever I eventually name this thing) looks silly.
I checked the source for a couple other Micro.blog templates and found none of them did anything special to handle the missing title. Most looked something like this:
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
After some trial and error, I noticed the .Summary
value for the default meta description tag and decided to use that. This is the first 'code' I have written in Hugo, so it might need some more tweaking in the future:
<title>
{{ if .IsHome }}
Home
{{ else if .Title }}
{{ .Title }}
{{ else}}
{{ .Summary }}}
{{ end }}
- {{ .Site.Title }}
</title>
Polar Express
CSS Loaders 100 sample loaders are all done with CSS. I continue to be amazed at what can be done with CSS, even with a personal goal to write as little CSS as possible for the rest of my life. 😄
It's that time of year...
An overview of some of the ways Rails protects you from yourself.
The principle is the same: Someone developed the seeds — for cowpeas, corn, rye, and more — and now offers the resource for everybody to share.
You can put this in the "the more you know" category.
Phlex is a framework for building fast, reusable, testable views in pure Ruby.
I look forward to trying Phlex for a small project in the next couple of weeks.
I am still a fan of ViewComponent as well, but the markdown support for Phlex might be a game changer for me.