Some discussion of Gutenberg and post-kinds support here: https://github.com/dshanske/indieweb-post-kinds/issues/190
I don’t seem to be able to select the post kind. It defaults to ‘note’, so if I’m posting a note, that should work fine. But for other types I think I’ll need to stick to the Classic editor for now.
Trying out the Gutenberg editor – fingers crossed everything still works reasonably well for an indieweb note post.
At HWC London tonight, I worked on a small thing – figuring out why my avatar was appearing blurry when pulled in to other sites following a webmention I’ve sent to them.
For example, on this like of one of Chris’ posts at boffosocko.com:
I wasn’t quite sure why, because the h-card I added into my WordPress theme links to a profile image on my site that is 654×654.
Looking at this with Calum we saw that I have multiple h-cards appearing on any given page, and (other than the one I’ve hard coded) they all point to my image on Gravatar. Not only that, they are specifically pulling out a 40px square version of my gravatar.
With a little inspection it turns out that every post on my site has a h-card embedded in it. It’s in the post footer that is added to each post, like this:So the bit that says ‘by’ and my name, also includes h-card microformats. And in that h-card markup, the image source is my gravatar image, at size 40px.
I wasn’t sure if having an h-card in every single post even made sense, but a bit of discussion with Barry helped me to understand the places you might have the h-card, and that while there’s various ways of doing it, an explicit h-card per post is certainly fine. Barry pointed me to the authorship page on the wiki for more details on this.
OK, so where does the h-card per post come from in my site? Given that it contains microformats, and I don’t think WordPress has much microformats built in, the most likely candidate is for it to be somewhere in my fork of the Sempress theme.
A quick search for h-card in the code of my theme for h-card shows yup, that’s where that post footer is being rendered. It’s in the sempress_posted_on function – there’s a call to get_avatar, a built-in WordPress function. In that call, the argument for the desired avatar size is being passed in as 40.
So I’ve bumped that up to 96, and all should now be well.
Is there a quick way to go through all untagged WordPress posts and tag them?
Trying to install a Duplicator package locally, I was hitting an issue where the package wasn’t creating a number of tables (including wp_posts) in my database.
Debugged it by running database.sql script manually in mysql.
This produced a few errors of Invalid default value for datetime fields, mostly.
Page here has some insights into this: https://wordpress.org/support/topic/invalid-default-value-database-install-fail-1/
The fix is to add
Many OOTB benefits, but WordPress for indieweb does bring with it the (contested) database antipattern. I do miss the flat-files/git combo that came with Hexo.
Categories vs tags, the age old question. But particularly in this case, which works best when publishing via micropub? Quill doesn’t seem to support categories?
Indiewebifying WordPress has been fantastically simple so far, thanks to great plugins and supporting tools.
Quill almost works – but doesn’t set the post type that is used by wordpress. Well – I guess that’s an issue in the micropub endpoint.
Testing a note from quill.
Had to install php-xml in order for log in to my blog from mobile app to work.
Not by default, no – the note comes through with an article for note kind.