Mtt
Mtt

After a lot of tinkering, I think I’ve managed to create a Drafts/Shortcuts combination that allows me to post everything to Micro.blog from directly within Drafts (including posts with titles, posts without titles, images, and link posts). On top of that, it all works on Mac and iOS.

|
Embed
Progress spinner
Mtt
Mtt

@Mtt And it supports Quotebacks.

|
Embed
Progress spinner
pratik
pratik

@Mtt You know I'm going to ask you to share it 😀 Please. I have a workflow for some of those in Drafts.

|
Embed
Progress spinner
Mtt
Mtt

@pratik I probably need to write it up in more depth, but here's the quick overview:

  1. (Optional) Create a new action group called Micro.blog or Publishing or whatever.
  2. Add this action and this action. These allow you to post with and without titles. I didn't create these, but they do everything needed.
  3. Install this shortcut. This is for image uploads.
  4. In Drafts, create a new action that automatically runs the above shortcut. You'll be prompted to choose an image when you run that action. It'll append the markdown to the currently open Draft.
  5. For Quotebacks, edit the extension settings in drafts. Make sure "Drafts" is chosen as the template type. Replace the existing text in there with:
<blockquote class="quoteback" darkmode="" data-title="[[title]]" data-author="" cite="[[url]]"&gt;
[[selection]]
<footer&gt;<cite&gt; <a href="[[url]]"&gt;[[url]]</a&gt;</cite&gt;</footer&gt; </blockquote&gt;
<script note="" src="https://cdn.jsdelivr.net/gh/Blogger-Peer-Review/quotebacks@1/quoteback.js"&gt;</script&gt;

That's the quick and dirty of it.

|
Embed
Progress spinner
In reply to
maique
maique

@Mtt Bookmarking this one, I need to get back to it with time on my hands.

|
Embed
Progress spinner
Mtt
Mtt

@maique @pratik If yall decide to do the Quotebacks part, I'll need to provide you with cleaner code. M.b had a little fun with that snippet. Hit me up when/if you need.

|
Embed
Progress spinner
pratik
pratik

@Mtt @maique Except for the Quotebacks, I have the other things in place but yup, I’m gonna bookmark this too in case things ever go sideways. But yeah, I like to see how you’ve implemented Quotebacks.

|
Embed
Progress spinner
pratik
pratik

@Mtt I see the Quotebacks code now in this post. Is it still valid? Think it's missing some closing &gt; but not sure if that's the only thing's that missing.

|
Embed
Progress spinner
Mtt
Mtt

@pratik Yeah, it’s encoded weird in that comment. Here it is formatted properly.

|
Embed
Progress spinner
pratik
pratik

@Mtt Much thanks. Can you share a post that you created using this?

|
Embed
Progress spinner
Mtt
Mtt

@pratik Here ya go.

|
Embed
Progress spinner
pratik
pratik

@Mtt Thanks. Looks great. Love how you have highlighted such link posts with the background color. For some reason, I was confusing Drafts Capture with the Share sheet and wondering why it's not showing up. It's sorted out now. BTW did you change the look of your homepage? Not using the earlier layout?

|
Embed
Progress spinner
Mtt
Mtt

@pratik I decided to incorporate the different elements into a single feed instead of the widget based layout. I have different background highlight colors (such as long form, link-posts/bookmarks, and working on movies, books as well).

|
Embed
Progress spinner
pratik
pratik

@Mtt Cool. Looks nice. More like a blog than a website if that’s what you’re going for

|
Embed
Progress spinner
Mtt
Mtt

@pratik Yeah, decided that was more practical in my case.

|
Embed
Progress spinner