Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/pages/oembed-html.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
permalink: oembed/post/{{ post.url }}/index.html
pagination:
data: collections.posts
size: 1
alias: post
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ post.data.title }}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>{{ post.data.title }}</h1>
<p>
<a href="{{ post.url | abs_url: site.url }}">Read More</a>
</p>
</body>
</html>
18 changes: 18 additions & 0 deletions src/pages/oembed-json.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
permalink: oembed/post{{ post.url }}/index.json
pagination:
data: collections.posts
size: 1
alias: post
---

{
"html": "<iframe width='533' height='300' allowtransparency='true' frameborder='0' allow='encrypted-media' title='Embed: {{ post.data.title }}' src='{{ "oembed/post" | append: post.url | append: "index.html" | abs_url: site.url }}'></iframe>",
"width": 533,
"height": 300,
"version": "1.0",
"provider_name": "James Steinbach",
"provider_url": "https://jdsteinbach.com",
"type": "rich",
"title": "{{ post.data.title }}"
}