Covid times…
I wrote this back in 2013 as part of my write-something-everyday project (It’s Novel).
7 years later it most certainly applies to my current thinking of the state of the world.
It changed everything and changed nothing. The mere existence, the actuality of it, the overwhelmingly realness meant that nothing could ever be the same. The reality shift had occurred and could never, ever be erased.
And yet nothing had changed. Planets orbited, children starved needlessly in wastelands while their neighbours nodded their heads. Young girls discovered love and old men counted their regrets like a miser counts his gold. The season slowly shifted, the morning was alive with sound and sun, and the birds started to get restless, eager to move on but not knowing why.
There were tasks to be performed and jobs to be done, just like yesterday; yet it was all so … different. And that difference was what it was all about. Or rather, the difference that the difference made. Everyone reacts differently to change and everyone is afraid of the unknown. Some revel in their fear and drink in the elixir from their adrenal glands, but many, even most, see it as a bizarre illness or an uncontrollable affliction that shreds their sanity simply by the fact of its existence.
Knowing things have irrevocable changed is often the reward for curiosity. And knowing it existed, changed it again.
Theme Code notes
A few Macblaze.ca specific fixes
To get my Instagram posts to play nice with flex rather than floats I added
.category-instagram .post-content{
display:flex;
flex-wrap: wrap;
}
Fixed the Headings CSS
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Ascending post order
macblazev v 0.75.9
Back when I posted about changing the order of certain categories and/or all of them. But for some reason the feature seems to be missing from MacblazeIV which reversed the order on all categories. So I needed to put it back in.
What I came up with is this. It goes in the category.php file after if ( have_posts() ) and allows me to specify which categories are sorted by ascending order and which are descending. This snippet also allows me to specify posts per page which I didn’t end up using but I left in here for posterity.
< Changes display order for certain categories >
$thiscat = get_query_var('cat');
$catobject = get_category($thiscat);
$parentcat = $catobject->category_parent;
$slugname = get_category($parentcat)->slug;
if (in_array($slugname, array('cat-1', 'cat-2')) || is_category(array('cat-3','cat-4')) ) {
query_posts( $query_string."&orderby=date&order=ASC&posts_per_page=2" );
}
It’s based on https://stackoverflow.com/questions/19961130/wordpress-how-to-get-parent-category-id and essentially finds the current category, finds the the id of the parent category then uses an if statement to check if that parent is one of the categories in the array. Then it checks to see if the current category is listed (without having a parent) as one that should also have an ascending order.
Parents and individual categories are listed by their slugs.
Right now the parents are: array('Trips Etc.') — so that all trips under that category read front to back — and the individual categories I want ascending are array('its-novel','recipes-of-yore').
All-in-all it works, but I need a more elegant solution.
Useful links for the future
- https://stackoverflow.com/questions/891238/wordpress-php-way-to-test-if-pages-are-children-of-a-parent-page#comment698429_891284
- http://rachievee.com/wp-tutorial-how-to-apply-a-template-to-sub-categories/
- https://perishablepress.com/6-ways-to-customize-wordpress-post-order/
- https://code.tutsplus.com/tutorials/wp_query-arguments-categories-and-tags–cms-23070
Instagram this (Past Few) Weeks











Announcing MacblazeV
So with all my work on the Hugo websites it occurred to me that this site could use some love. It went through a major redesign last year, but the back end was still in the last century.
Redesigned Theme
So while the look hasn’t changed much (except for some fixes/refinements I have been meaning to do for ages) the theme itself (now called MacblazeV) has been redone almost from scratch. My intent was to build it completely from scratch without borrowing any code MacblazeIV was built on a blank framework from Underscores but this time I was trying to avoid that. In the end I did use some of their functions for customization, but it was pretty minimal. 95% of this theme was done from a blank file—I am actually pretty chuffed with myself about that.
WordPress has gotten more and more complicated over the years and all the bells and whistles are pretty complex to implement. Because this theme is for personal use I was able to ignore a large part of that and just add the features I knew I would use.
Design stuff
I am not 100% about all the design elements at this point. As I said this was more about rebuilding the back end and getting rid of floats etc. So I will likely still be tweaking it for a while. But I am super happy with its responsiveness and and the overall structure. It will be much easier to modify now.
I still have to work on some technical issues regarding Instagram and some excessive resource use on the server, but that’s a separate subject.
ebook Update 2020
We’ve added a few more books this year to the list.
L and I worked on some childhood favourites of hers and I added a few plays, some Wodehouse and a Barsoom book. As usual they can all be found at Standard Ebooks‘ website and the whole list is current on my portfolio site: astart.ca.
And so…
The Wodehouse shorts took a lot of work and research—a massive canon and many only available in modern collection or the original serial publications. And there are still a lot more stories to add. It was fun to delve back into Restoration drama (The Way of the World) and I added a few Shakespeare—I had actually never read The Merry Wives of Windsor. As always, I hope you give some of them a try. I also try to keep a current list of books over at astart.ca/ebooks.
Thought of the day
Amid the Covid-19 explosion of online experts and the concurrent shift to populist governments it occurred to me that:
The internet has fostered the age of ideologues.
—August 1, 2020
Hugo Notes
I’ve added my markdown notes for hugo to a page for easy future reference:
Hugo again
A quick update
Having (mostly) successfully updated my professional site using Hugo I decided to take a swing at L’s. It was more of a blog format so it gave me some insight into how that kind of functionality could be used.
I also learned I was a dinosaur who still used floats and ended up updating both it and my own site to use flexbox. Learn something new every day! That in itself is worth a post or two.
Netlify
Under the category of learning and things I need to go into greater detail about later, I also switched the hosting of readingwithapencil.com from wordpress.com to Netlify. As a result I have a more flexible site without actually having to pay for anything (WordPress charged for the use of a custom domain).
The workflow works off of Github which I have been using more and more with the Standard Ebooks project so it is pretty smooth. All in all it is really worth of a post of its own but there are so many videos out there it might just serve you (the reader) better to go watch a couple of them.
But I will eventually jot down my thoughts here…at least so I can figure out what I did when I inevitably break it—that being, originally, the whole purpose of this site.
Hugo!
While I was looking into linux, I came across a vlog that recommended using Hugo and Netlify as a way to maintain a free web presence. I’ve found a lot of these sorts of things (“free”) and even went so far as to set up a small site using the free parts of Google Cloud to get my Python project up and running.
But what struck me about Hugo was that it was a static website and therefore faster and more secure than the typical WordPress install. And it was an intriguing concept that you could mimic the flexibility of a dynamic site using static pages. So I decided to give it a go.
I deiced to leave Netlify as an experiment for a future project and set about rebuilding the site using Hugo. As a result my old, much ignored portfolio site astart.ca is now refreshed and way more speedy even though I didn’t change the content or the host.
So what is it?
I will get into more it in a later post. But basically it’s a framework that allows you to build the website using templates and pseudo-dynamic techniques and when you are ready to go, you just “publish” the project and it exports the whole website as static pages. It supports a ton of themes like WordPress, although again I decided to build my own from scratch.
Pages are built using markdown. It’s a versatile markup language and one I keep trying to use so one of the side benefits of this is I have become much more facile using it. The gist is that now the site is built all you have to do is open a text file, add content using markdown formatting, link to accompanying pictures and then just run a short “deploy” script to automatically rebuild the site and upload to your host. Simple.
It’s perfect for a site like the portfolio that doesn’t change much, but now I am going to try it on a more blog-oriented site to see it it will stand up to more frequent posting. I will let you know.
As for astart.ca, well it’s up and running and has a fresh new design. Check it out. Now all I have to do is dig up more current material to post. And that’s the hard part 😉
















