HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.7k stars 77 forks source link

Request: Ability to disable Toasts #59

Closed reustle closed 3 years ago

reustle commented 3 years ago

In an attempt to resist the mass spread of “likes” across the internet, turning every piece of content into a popularity contest, I’d love to be able to remove the option to Toast on my blog posts. I like the feature, just prefer not to have it on my content. I understand you use this for the discovery feed, and that my posts may no longer show there.

You may also suggest to use custom css to hide it, which is also a fine solution as well. Thanks for building the tool!

HermanMartinus commented 3 years ago

You can disabled it on the post page in the dashboard by deselecting the checkbox "Show in feed". That removes the toast button and prevents it from showing up in https://bearblog.dev/discover/

reustle commented 3 years ago

Great, thanks Herman. May I make a small suggestion to clarify this in the UI? It is not clear that removing “show in feed” will also remove this toast button. Also, a site-wide option would be fantastic. Thanks again for all of the hard work on this great project.

fanfare commented 1 year ago

has this option been removed? i looked but don't see any checkbox 'Show in feed" option on the URL https://bearblog.dev/dashboard/

HermanMartinus commented 1 year ago

@fanfare in the header of the post set make_discoverable: false

This will prevent it from showing on the discovery feed and remove the Toast this post button

jonasnordlund commented 1 year ago

Great, thanks Herman. May I make a small suggestion to clarify this in the UI? It is not clear that removing “show in feed” will also remove this toast button. Also, a site-wide option would be fantastic. Thanks again for all of the hard work on this great project.

If you want to hide the button for your site, you can use custom CSS like this on a new, final row in a customized theme:

#upvote-form { display: none !important; }

Note that:

  1. It will still show up in the discovery feed unless you set make_discoverable to false.
  2. Now the vote button will always be hidden regardless make_discoverable setting.

But if you don't mind these things, this can be a workaround for a site-wide preference.

HermanMartinus commented 1 year ago

If you hide the upvote form with CSS it will technically be in the discover feed, but the feed is ranked by upvotes, so there's no point. If you'd like to do a site-wide make_disoverable: false you can add it to your post template so it's automatically there on new post creation.

runarcn commented 7 months ago

Hi, Might I suggest that this be clarified in the docs? ie. by appending "This also removes the 'Toast' counter"

edit: fixed the markdown