This is still a Blogger site. If you have been reading here for a while, you probably didn't need me to tell you that. But if this is your first visit, I hope it wasn't your first thought.
I have spent more than thirty years building software, and I wanted my own website to reflect some of that experience. The old design was usable. It looked reasonably good on a phone, and I liked the menu. But the homepage was mostly a succession of posts. You arrived at whatever I had published most recently, then kept scrolling. There was a lot more here than that first screen suggested.
I write about programming, faith, and family, with the occasional detour into finances. I also have projects, a reading log, a resume, and other pages I want people to find. Someone arriving for a SQL Server article might have no idea any of those existed. I wanted to give them a reason to look around.
I wasn't looking to move the blog. The posts were already here, the links were established, and publishing worked. I wanted a better website around that content. I just wasn't sure how much Blogger would let me change.
Quite a bit, as it turns out. A Blogger theme is an XML template containing HTML, styles, scripts, and Blogger's own tags. Those tags supply things such as post titles and bodies. Google's layout documentation allows ordinary HTML around its sections and widgets, which leaves plenty of room to build a custom layout. The familiar stack of blog posts was a design choice I could change.
The homepage became the biggest part of the redesign. I wanted an introduction at the top, the latest article easy to find, and a shorter view of recent writing. Below that came four subjects people could browse and a few projects I have built. Programming and SQL Server stayed separate because someone looking for database articles shouldn't have to work through everything else I write about software.
I love the muted plum colors, and the workspace illustration is my favorite part. There is code on the screen, a Bible on the desk, a drawing of two parents and three kids, and a garden outside. It gives someone visiting the homepage a pretty good idea of who I am.
I also kept the article and page content narrower than the header and footer. A wide homepage has room for cards and an illustration. A long article needs comfortable lines of text. I had initially wondered whether those widths should match, but seeing the pages together convinced me to keep the difference.
There were also things I wanted left alone. The fly-out menu already worked well, especially the short descriptions under the links. The article dates had been cleaned up so they appeared once. Older and newer post links worked without leaving an empty gap when one was missing. I didn't want to spend the redesign fixing things that already worked.
Then the new template went into Blogger, and the homepage displayed a header, a footer, and nothing in between.
The posts hadn't been deleted. Blogger wasn't rendering them. At first there was also a JavaScript error, Unexpected token '<', caused by an XML CDATA marker reaching the browser as JavaScript. Correcting the script wrapper removed that error. The content was still missing.
That was frustrating. The new design had looked good in the local preview, and the XML passed validation. Neither check had actually run Blogger's template processing. The browser console was now quiet because the missing posts weren't a JavaScript problem. Blogger had left them out before the page reached the browser.
The useful test was an extremely small template in Blogger's own Preview: a heading and a loop that printed the post titles. That worked. The content was available, and Blogger could display it. The ordinary HTML header and footer had been rendering all along; the trouble was in the integration with the widgets that supplied the rest of the page.
The fix was in the section and widget declarations. Simplifying those declarations and explicitly setting widget visibility and the layout and widget versions got the complete homepage rendering. Then it was time to open the individual pages.
Opening About and Books exposed a separate problem. Blogger returned a comment beginning Failed to render gadget 'Blog1' instead of the page content. The template used a long expression to assign different CSS classes to each page, and Blogger was rejecting that expression.
The goal was simple: every static page needed the page-main class, and About also needed page-about for its own styling. The template tried to build that class list in one expression. Here is the About-page portion of the longer expression Blogger rejected:
<main id='main'
expr:class='"page-main" +
(data:blog.canonicalUrl == "https://www.pavey.me/p/about.html"
? " page-about" : "")'>
<!-- Existing page content -->
</main>
I kept the shared class on the element and used Blogger's b:class tag to add the page-specific class:
<main id='main' class='page-main'>
<b:class
cond='data:blog.canonicalUrl == "https://www.pavey.me/p/about.html"'
name='page-about'/>
<!-- Existing page content -->
</main>
On About, that produces class="page-main page-about". The other pages follow the same pattern with their own conditions and class names. The content inside the element stayed as it was.
The individual pages and their styling came back. From there, the checks went beyond whether a page loaded:
- About, Books, Resume, Projects, Contact, Favorites, and Archive all displayed their content and page-specific layouts.
- The latest article showed one publication date and an Older Post link to the preceding article.
- The SQL Server subject link opened the matching articles.
- The mobile menu worked, the cards fit, and the Books page stayed within a 320-pixel screen while its table scrolled separately. Searching the reading log for Mere Christianity returned the matching book.
With the pages working, I could get back to the details I had been looking forward to. Small custom icons went into the main menu and the subject and project cards. They are SVG drawings embedded directly in the template, so there is no icon font to load and no separate image to upload for each one. I kept them small and left the footer alone.
The homepage won't be another page I have to keep updating, either. Blogger supplies the latest article and the recent-post cards from the posts I publish. I don't have to copy a title, write another excerpt, or rearrange links each time something goes live. The new layout still uses the publishing process I already know.
I wanted my website to reflect the care I put into my work. It took more debugging than I expected, but I'm proud of how it turned out. I'm happy to send people here to see what I've been building and writing.