From da089d5175df867367e3e0e8ebb7eae35defbba9 Mon Sep 17 00:00:00 2001 From: James Steinbach Date: Thu, 1 Oct 2020 18:12:52 -0500 Subject: [PATCH] Add JSON & HTML for oEmbed --- src/pages/oembed-html.liquid | 23 +++++++++++++++++++++++ src/pages/oembed-json.liquid | 18 ++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/pages/oembed-html.liquid create mode 100644 src/pages/oembed-json.liquid diff --git a/src/pages/oembed-html.liquid b/src/pages/oembed-html.liquid new file mode 100644 index 000000000..9409dbdb0 --- /dev/null +++ b/src/pages/oembed-html.liquid @@ -0,0 +1,23 @@ +--- +permalink: oembed/post/{{ post.url }}/index.html +pagination: + data: collections.posts + size: 1 + alias: post +--- + + + + + + {{ post.data.title }} + + + + +

{{ post.data.title }}

+

+ Read More +

+ + diff --git a/src/pages/oembed-json.liquid b/src/pages/oembed-json.liquid new file mode 100644 index 000000000..d36e75a8c --- /dev/null +++ b/src/pages/oembed-json.liquid @@ -0,0 +1,18 @@ +--- +permalink: oembed/post{{ post.url }}/index.json +pagination: + data: collections.posts + size: 1 + alias: post +--- + +{ + "html": "", + "width": 533, + "height": 300, + "version": "1.0", + "provider_name": "James Steinbach", + "provider_url": "https://jdsteinbach.com", + "type": "rich", + "title": "{{ post.data.title }}" +}