OK, this is where I go off Twitter for a while as I’ll be 3 episodes behind and I’ve somehow managed to avoid any spoilers to this point, not going to jinx it.

It was majestic alone among the mangroves today.

The only 2 things I really used in LESS & Sass were includes and variables. So when I discovered a basic PostCSS workflow that lets you write blue=var(--primary2dark) in a variables file and then include all the CSS files you want, I was pretty pleased. A couple of other extensions for optimizing all wrapped in a Gulp task. It’s made writing CSS fun because I don’t have to think about browser support and can just focus on really learning css-grid and flexbox (with subgrid on the horizon). Anyway, if you haven’t checked it out, I recommend it. Here’s the current gulpfile.js I cobbled together. I’ll admit a couple of the plugins I’m not sure I’m using yet. I intend to do an audit once I’m happy with the base style and markup.

Feeling a little desperate so I did a thing https://www.patreon.com/miklb

But I’m really horrible at self-marketing so it will probably fail but I have to figure something out soon.

I probably would be better off with a one time thing vs long term support so I’m open to suggestions.

WIth the new package registry news from @GitHub I wonder how hosted gems will play into the GitHub Pages ecosystem. There is a small whitelist of plugins that can be used & you can use a theme gem now if it’s a public repo. Would be nice of plugins are the same.

Not sure if this will help anyone but after the latest update to MiFit iOS app, I couldn’t connect the band. No luck with suggested troubleshooting. Deleting the app and and re-installing did the trick. I’m ready for an Apple Watch though.

Went to find some new music to listen to while finishing some tasks and first song on the Apple mix is Bill Janovitz covering Lodi and it’s perfect. Only got to see Buffalo Tom once, but it was an epic night with Yo La Tengo & My Bloody Valentine.

Instead of rubber ducking, I’m writing it out here…

I’m trying to modify @benbalter’s WordPress Jekyll Export plugin to extract serialzed data from post_meta values. It seems most (all?) of the IndieWeb WordPress plugins use serialized values so it’s necessary to migrate. Otherwise I wind up with YAML that looks like this

mf2_syndication:
  - 'a:1:{i:0;s:52:"https://twitter.com/miklb/status/1116855596970651650";}'
geo_weather:
  - 'a:2:{s:4:"icon";s:4:"none";s:10:"visibility";s:6:"public";}

The chunk of code that handles that

// Convert traditional post_meta values, hide hidden values.
        foreach ( get_post_custom( $post->ID ) as $key => $value ) {

            if ( substr( $key, 0, 1 ) === '_' ) {
                continue;
            }

            $output[ $key ] = $value;

        }

What I need to do is unserialize $value and if it’s an array, loop through them and nest the values for each $key.

to get something like

mf2_syndication: https://twitter.com/miklb/status/1116855596970651650

geo_weather:
    - icon: none
       visibility: public

But my first step is to unravel the serialized $value. I’ve tried just adding $output[ $key ] = maybe_unserialize ($value ); and that didn’t work like the magic bullet I’d hoped.

🤔