Skip to content

πŸ• Link to your post on the Micro.blog timeline.

License

Notifications You must be signed in to change notification settings

svendahlstrand/plugin-conversation-on-mb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Conversation on Micro.blog

Link to your post on the Micro.blog timeline from your blog.

With this convenient plug-in, your blog posts get a Conversation on Micro.blog link. When a reader taps that link, they will swiftly end up on the Micro.blog timeline for your blog post. From there, it's easy to engage in the conversation.

To get updates on this plug-in, follow @sod on Micro.blog.

Do you get value from Conversation on Micro.blog? I'd love your support!

Hey! It's me, Sven. Conversation on Micro.blog and my other plug-ins are passion projects released to the world for free. That said, donations are always welcome if you get value from my work.

πŸ’Έ Donate $10 or any amount you're comfortable with. Thanks! πŸ™

Bells and whistles

  • πŸ›  Customizable via plug-in settings.
  • ✴️ Change the link text to whatever you want. Go bananas! Use emojis! Or HTML!
  • ⛳️ Flexible placement in your theme using a Hugo partial.
  • 🎁 Customize the look and feel using CSS.

Get started

Hello, fellow microblogger! πŸ‘‹ Thanks for being here. This plug-in is available in the official directory, so the installation process is quick and easy.

Install the plug-in

  1. Find Conversation on Micro.blog in the plug-in directory.
  2. Choose the site you want to install the plug-in to.
  3. Press Install.
  4. Congratulations, the plug-in is now installed.

Include the Conversation on Micro.blog link in your theme

Some themes, like Hitchens and Tiny, come with built-in support for this plug-in. If you're on such a theme, skip this step and continue to Make sure the Conversation on Micro.blog link shows up.

If your current theme lacks built-in support, you need a custom theme. Maybe you already have one? If not, follow Manton's instructions here.

  1. Follow this link or go to Design β†’ Edit Custom Themes.

  2. Click on your custom theme. (It's probably named Marfa Custom or something like that.)

  3. Click on the relevant template. (Often layouts/post/single.html but varies from theme to theme.)

  4. Paste the following partial call where you see fit. For some themes, a good place might be after the content (look for {{ .Content }} in the template).

{{ partial "conversation-link.html" . }}
  1. Press Update Template and pat yourself on the back.

Make sure the Conversation on Micro.blog link shows up

  1. Find a post on your blog and make sure you see the Conversation on Micro.blog link.

  2. Click it, make sure it takes you to the timeline on Micro.blog.

Configure the plug-in (if you want)

  1. Go to Plug-ins and press βš™οΈ Settings (next to the Conversation on Micro.blog plug-in).

  2. Make changes as you see fit.

  3. Press Update Settings and go to the next step.

Customize the look and feel

The Conversation on Micro.blog link is delivered to you with minimal markup and styles. Every Micro.blog theme is individual, and this bare-bones approach keeps it flexible. It's up to you to implement a custom look and feel using HTML and CSS. Here's a couple of examples for your inspiration.

Give the link breathing room with a paragraph

There's an easy way to add a space between the Conversation on Micro.blog link and content around it. Just wrap the link in a paragraph. Add the partial call to the template in this way:

<p>{{ partial "conversation-link.html" . }}</p>

That should result in the same amount of breathing space text paragraphs have between them.

Be creative with emoji and HTML

On the plug-in βš™οΈ Settings page, you can customize the link text. The default ✴️ Conversation on Micro.blog can be changed into anything you want. You can even use emoji and HTML!

If you install the Font Awesome plug-in you'll get plenty of additional icons to use. Do you want the fancy Micro.blog logo next to your text? Save your link text like this:

<i class="fa-brands fa-microblog"></i> Conversation on Micro.blog

Flexible look and hover effect using CSS

If you're comfortable with CSS, there are endless possibilities for styling. And if you're new to CSS, you can still do it! You can learn a lot from @Miraz's excellent tutorials. Start with What you need to know about CSS to customise your Micro.Blog blog.

The Conversation on Micro.blog link is just an a element with the class conversation-on-mb. I experimented with the CSS below to get a nice hover effect. It's not guaranteed to look good on your blog, though. πŸ˜‰

To add custom CSS to a Micro.blog, navigate to Design β†’ Edit CSS.

.conversation-on-mb {
  border: solid 0.15rem black;
  border-radius: 0.4rem;
  color: black;
  display: inline-block;
  font-weight: bold;
  padding: 0.3rem 0.6rem 0 0.6rem;
  text-decoration: none;
}

.conversation-on-mb:hover {
  border-color: #011ac5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  color: #011ac5;
  text-decoration: none;
}

Having troubles?

Feel free to reach out to @sod on Micro.blog for additional help.

About

πŸ• Link to your post on the Micro.blog timeline.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages