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.

Left over skirt steak and sweet potatoes hash....it's what's for breakfast.

#

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

#

Open Source Seeds

The principle is the same: Someone developed the seeds — for cowpeas, corn, rye, and more — and now offers the resource for everybody to share.

#

Phlex

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.

#