-
byNo coding today. Planning and thinking about how to implement Streams, one of my core ideas behind Tanzawa.
Streams will help you categorize and posts and blogs. You have a running stream, a status stream, a checkins steam. Each stream is independent of each other and each stream flows into the main Tanzawa stream.
Posts of any kind can appear in any stream. Streams will be listed on the left and have their own feed.Β In micropub parlance these would be tags or categories.Β
Some streams may be unlisted streams, entirely off the map, hiding all contents from anyone that isnβt logged in.Β
Once streams are working, I can start modeling checkin and address data requirements and add support to micropub.
βββ
The other thing Iβm starting to think about is how other people could start using Tanzawa. Initial setup a little involvedΒ as SQLite needs Geo extensions installed to work. A Docker container would be easiest to make it all work, but even thatβs a hurdle to getting started.Β
I could provide hosting, but Iβm not sure I want that kind of responsibility yet.Β One step at a time. -
Checkin to Soup Stock Tokyo
Post health check meal.
-
byAfter confirming that the <html> tag inside the <figure> tag was causing the errors with Feedly I went and fixed all posts. Below is the script I ran in the django shell.
Happy to report that Tanzawa is once again producing valid rss.from bs4 import BeautifulSoup from post.models import TPost for t_post in TPost.objects.all(): entry = t_post.ref_t_entry.first() soup = BeautifulSoup(entry.e_content, 'html.parser') for html in soup.find_all('html'): try: pic = html.find('picture').extract() except AttributeError: # no pic continue html.replace_with(pic) entry.e_content = str(soup) entry.save()
Also being able to back up and restore your site's database with a simple "cp db.sqlite3 db.sqlite3.bak" is soooooooo nice. -
by
As of today, Tanzawa officially supports IndieAuth and Micropub. Micropub is still a work-in-progress, but it works for basic note and articles with photos. I also pushed the RSS fix so _new_ posts with images should display properly for Feedly users. By the way - this post was made with Quill. -
byFigured out (I think) the issue with my Feedly feeds and images. I use BeautifulSoup and Django templates to rewrite the image tags generated by Trix to be lazy loading and offer optimized formats on the backend.
picture = BeautifulSoup( render_to_string("trix/picture.html", context),"html5lib" )
The issue is that the the "html5lib" causes my <figure> tag to be wrapped in <html> and <body> tags. Browsers are smart enough to filter this out. But these other parsers are not.
Changing this line to use the "html.parser" prevents wrapping my template in html tags and should solve the issue.picture = BeautifulSoup( render_to_string("trix/picture.html", context), 'html.parser' )