-
byBack to building some base infrastructure again. This time for adding / deleting syndication urls. Deleting is simple enough β it's just a (hidden) checkbox with a small stimulus controller setup to toggle its label text between "Remove" and "Undo".
Adding a secondary form also works. I output an empty formset form into my template then use a small action to copy it, replace the id and update the management form, 5 lines of code, half of which is variable definitions.
My goal is to be able to reuse this whenever I need to add multiple related records to a post without any modifications. -
Response to
It's a little bittersweet β on the one hand it feels good as I know that I have a new solution but, on the other, it feels a little sad that the fruits of so much time and effort are now redundant.
I feel this when I improve implementations all the time. Code reflects our best understanding of a given problem to a given solution at a given time. Requirements changing naturally means that the problem has also changed.
When writing code I try to remind myself that all is temporary and will be deleted or rewritten at some point, so I best not grow too fond of it. -
byCreating a slick checkin experience is out of the scope of a personal website, so you'll need to use Swarm (or such) to checkin and backfeed them into Tanzawa. However, I often find myself wanting to expand that check into a proper blog post β to tell a story about what happened. So you should be able to edit a checkin on your blog.
The edit checkin page is the same all other edit pages, except it has two fields at the top: Where did you go? and What's its url?Extra fields on checkin posts
I also started working on being able to add syndication urls to posts. I've already added support via micropub to save syndication urls. This lets you add / remove them for non-micropub posts.Syndication urls
When you can eventually set your identities on other sites in Tanzawa, it might be fun to customize the placeholder text. For example you could get it to use your username or randomly use different sites e.g. twitter on the first load, flickr on the second load etc... -
Response to
byI just took a quick look at my server logs. And I see that there are some bots that are constantly crawling my site. If that would be search engines, feed readers etc. that wouldnβt be a problem. But this are crawlers by companies whose websites try to se
I wonder if there isn't a list of these cralwers out there that you could then automatically block at the nginx/apache level. Even handling it at the app server level would discourage them from crawling your site too much. -
byJust a small update today β posts made with micropub respect the published datetime and I'm saving /showing syndication urls. I still need a proper interface for both of these in the admin. This is what syndication links will look like in a post.
Syndication links now appear in the post meta