Skip to content

Featue: support for meta embeds #2348

Description

@codemicro

Describe the feature you'd like
Currently, BookStack has no support for meta embeds that are commonly used on social media sites, similar to this:

DiscordPTB_2020-10-25_23-25-41

Perhaps this is something that would fit into BookStack? For example, the meta embed for a page of text could contain info like the page title, the first image (if any) in it, and a small amount of the content. The embed for a book could show its cover image and some info about the pages inside of it. Et cetera, et cetera.

Currently, the only option is to use some custom header content, which results in a fixed embed for every page.

Describe the benefits this feature would bring to BookStack users
This gives BookStack links that're shared on services like Discord and Twitter more credibility and makes them look a bit better... okay, it's basically entirely an aesthetical thing. You have to admit they do look nice, though.

Additional context
CSS tricks: The Essential Meta Tags for Social Media
The Open Graph protocol
Example meta tags from my site:

<meta name="description" content="UK based student and programmer">
<meta property="og:title" content="Thomas Pain">
<meta property="og:site_name" content="tdpain.net">
<meta property="og:description" content="UK based student and programmer">
<meta property="og:url" content="https://www.tdpain.net/">
<meta property="og:image" content="https://cdn.tdpain.net/avatar.png">

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions