Skip to content

Commit 4ae5c56

Browse files
committed
special embed for home
1 parent ea86c7f commit 4ae5c56

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

layouts/_default/home.iframe.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US" class="no-js">
3+
<head>
4+
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
5+
<base target="_top" />
6+
<style>
7+
{{ partial "oembed.css" . | safeCSS }}
8+
</style>
9+
<meta name="robots" content="noindex, follow"/>
10+
<link rel="canonical" href="{{ .Permalink }}" />
11+
</head>
12+
<body class="hugo hugo-embed-responsive">
13+
<div class="hugo-embed">
14+
<p class="hugo-embed-heading">
15+
<a href="{{ .Permalink }}" target="_top">{{ .Title }}</a>
16+
</p>
17+
<div class="hugo-embed-excerpt">
18+
A small, lisp-inspired, functional scripting language
19+
</div>
20+
<div class="hugo-embed-footer">
21+
<div class="hugo-embed-site-title">
22+
<a href="{{ .Site.BaseURL }}" target="_top">
23+
{{ with resources.Get "images/Ark-slim-logo.png" }}
24+
<img src="{{ .RelPermalink }}" id="homepage-logo" alt="ArkScript logo" width="32" height="32" alt="{{ .Site.Title }}" class="hugo-embed-site-icon" />
25+
<span>{{ .Site.Title }}</span>
26+
{{ end }}
27+
</a>
28+
</div>
29+
</div>
30+
</div>
31+
</body>
32+
</html>
33+

layouts/_default/home.oembed.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"provider_url": "{{ .Site.BaseURL }}",
55
"type": "rich",
66
"title": "{{ .Title }} | {{ .Site.Title }}",
7+
"type": "rich",
8+
"width": 600,
9+
"height": 338,
10+
"thumbnail_url": "{{ .Site.BaseURL }}/cover.png",
11+
"thumbnail_width": 600,
12+
"thumbnail_height": 338,
713
"url": "{{ .Permalink }}",
8-
"author_name": "{{ if .Params.author }}{{ .Params.author }}{{ else }}Anonymous{{ end }}",
914
"html": "<iframe src=\"{{ .Permalink }}iframe.html\" width=\"600\" height=\"200\" title=\"{{ .Title }}\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"hugo-embedded-content\"></iframe>"
1015
}
1116

static/cover.png

10 KB
Loading

0 commit comments

Comments
 (0)