wolfpet / kitchen

Open Source Threaded Discussion project
6 stars 3 forks source link

NEW: Support Open Graph metadata for shared links #148

Closed iamranger closed 10 months ago

iamranger commented 6 years ago

When render_for_db, make request to URLs in the body. and add [render] with Open Graph data (if present):

  <meta property="og:site_name" content="tonsky.me" /> <!-- gray -->
  <meta property="og:title" content="Software disenchantment" /> <!-- bold link to og:url -->
  <meta property="og:description" content="Everything is going to hell and nobody seems to care" />
  <meta property="og:type" content="article" /> <!-- do not display -->
  <meta property="article:published_time" content='2018-09-17' /> <!-- display formatted -->

  <meta property="og:url" content="http://tonsky.me/blog/disenchantment/" />

Note: Open Graph is a Facebook standard. Twitter has similar thing, may be a good idea to support both.

Example: http://tonsky.me/blog/disenchantment/ (see source)