Photo

    When the hot glue fights back.

    Kalena crafting and hot glue burning.

    A New Plugin for Tiny Theme: Adaptive Photo Layout

    When I first created Tiny Theme, I knew I wanted to allow users to create posts with more than a handful of images. While technically possible from day one, the default layout was a simple vertical stack of images. While this is to be expected on mobile devices, it’s less than elegant on larger screens.

    The solution comes in the form of the Adaptive Photo Layout plugin for Tiny Theme.

    Installation

    1. Go to the Plugin Page
    2. Install It

    Usage

    To create a gallery, you have to follow a few steps manually. This allows you to only use the adaptive photo layout when you’re sure you need it. Here’s the sample code:

    <div class="adaptive_photo_layout">
    	<ul>
    		<li><img src="LINK TO IMAGE 1" alt="IMAGE 1 DESCRIPTION" loading="lazy"></li>
    		<li><img src="LINK TO IMAGE 2" alt="IMAGE 2 DESCRIPTION" loading="lazy"></li>
    		<li><img src="LINK TO IMAGE 3" alt="IMAGE 3 DESCRIPTION" loading="lazy"></li>
    		<li><img src="LINK TO IMAGE 4" alt="IMAGE 4 DESCRIPTION" loading="lazy"></li>
    		<li><img src="LINK TO IMAGE 5" alt="IMAGE 5 DESCRIPTION" loading="lazy"></li>
    		<li></li>
    	</ul>
    </div>
    

    The last empty <li></li> is suggested for formatting purposes.

    There are no limits to the amount of photos you can use. As long as your code is formatted like the above, it will work. If you’d like, you can even link each image to a standalone version (or to anything else) as well.

    Shortcode?

    I made the intentional decision to not include a shortcode with this plugin. Shortcodes create longterm lock-in to a plugin. I wanted you to be able to switch themes and plugins in the future without your site breaking or you being required to manually remove every shortcode.

    Shortcuts!

    Thanks to the excellent work of Jarrod Blundy of HeyDingus.net, this plugin is launching with 2 included Shortcuts for iOS/MacOS.

    Both shortcuts require you to validate your Micro.blog account upon initial use. They also give you the opportunity to view and add alt descriptions to each photo in your album. The results are then added to your clipboard. Easily paste the html into your new post/page and publish!

    Jarrod did an excellent job with these plugins. Checkout his library for more shortcuts. Best of all, you can even hire him to create one for you.

    Support Development

    Tiny Theme and its plugins are provided free of charge to Micro.blog users. I do not receive payment from Micro.blog in any way. If you’d like to help offset expenses and ensure the future of Tiny and its plugins, please consider supporting its development.

    Buy Me A Coffee

    Example

    With the Adaptive Photo Layout plugin, you can create albums that look great on desktop and tablet browsers. For this example, I used the iOS shortcut.

    • Kalena at beach
    • Matt and Kalena in Lithuania
    • Kalena in Mexico
    • Isla Mujeres
    • Kalena in Savannah
    • Matt and Kalena in Hawaii
    • Kalena in Breaux Bridge
    • Kalena and son at beach
    • Matt and Kalena at Truist Park
    • Kalena and son at beach
    • Kalena and son with dinosaurs
    • Kalena and daughter in San Antonio
    • Kalena and son at Minute Maid Park
    • Kalena in Pensacola
    • Matt and Kalena in Lafayette
    • Matt and Kalena and family
    • Kalena and son playing baseball
    • Kalena and son at baseball game
    • Langford family in Pensacola
    • Matt and Kalena in Oklahoma
    • Kalena holding rock

    Her first time ice skating.

    Mom and 4 year old ice skating.

    Tinylytics by @vincent has already become a must have for micro.blog users. It’s so simple and useful. Plus, he gives shoutouts to guys like myself and @jimmitchell.

    So is it X but also Twitter? Or do they have that worked out yet?

    Today’s front yard view.

    Louisiana front yard with pond. Kalena walking across.

    Having a little fun with Tinylytics (by @vincent) on my blog today.

    screenshot of tinlytics integration on mattlangford.com

    Find me on Threads (mattslangford).

    July 4th Family Day.

    Family photoChild and Kalena swinging

    Seems like as good a time as any to do yard work. Here goes nothing. 🔥

    Wife and kids surprised me with an early Father’s Day gift. It’s a winner!

    Today is our 10 year wedding anniversary. From a blind date to countless trips to lots of laughs to 2 perfect kids and everything in between, it’s been an amazing ride. May the next 10 be even better!

    Another day with family, baseball, trampolines, and the outdoors.

    A little bit of front yard catch for the girls.

    A new tree for the yard. Planting in crocs. Being the heavier of the two of us, I ended up doing the digging. To her disappointment.

    She could spend her entire lifetime in a backyard garden. It is, without a doubt, something that “sparks joy.” I’m thinking it’s time to add some more raised beds like she’s been asking.

    Happy Mother’s Day to these two.

    Any watch lovers out there? I’m selling a Seiko 5 GMT SSK003 for $325 shipped US. It does have a scratch on the crystal (can live with it, buff it, or replace it). Box, papers, links, etc included.

    A friend of mine has been sharing photos from their trip to Isla Mujeres which reminded me of when we went 9 years ago. I think it’s time we go back!

    Beach viewBeach viewKalena with beach viewMatt in the beach

    First game of the year!

    Astros baseball

    Watching my son’s tee ball game during some absolutely perfect weather today.

    Alright, had to rethink things again. Here is where I’ve landed for my current home and Lock Screen setup.

    Playing in the rocks in Broken Bow.

    We went for a nice family hike in Broken Bow today. Both kids were up for the adventure and handled it like pros.

    Arkansas BBQ joint.

← Newer Posts Older Posts →