-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (53 loc) · 2.29 KB
/
index.html
File metadata and controls
56 lines (53 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Freshly Baked Beans</title>
<meta property="og:title" content="Freshly Baked Dog Toe Beans" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://shenanigans.dog/beans/beans.png" />
<meta property="og:description" content="Look at these magnificent little paw pads. 10/10 would boop. Warning: May cause uncontrollable squealing." />
<meta property="og:url" content="https://shenanigans.dog/beans/" />
<style>
.image-box {
border: 2px solid #ccc;
padding: 10px;
display: inline-block;
margin-bottom: 20px;
border-radius: 8px;
background-color: #f9f9f9;
}
.image-box img {
max-width: 100%;
height: auto;
border-radius: 4px;
}
pre {
background-color: #eee;
padding: 15px;
border-radius: 4px;
overflow-x: auto;
}
body {
font-family: sans-serif;
line-height: 1.6;
margin: 20px;
max-width: 800px;
}
</style>
</head>
<body>
<div class="image-box">
<img src="beans.png" alt="Dog Toe Beans" />
</div>
<h2>How to Make Your Own OpenGraph Embed</h2>
<p>To make your own rich preview embed when sharing a link on social media or messaging platforms, you need to add special OpenGraph <code><meta></code> tags to the <code><head></code> section of your HTML document. These tags tell the platform what title, description, and image to display in the preview card.</p>
<p>Here is an example of the meta tags used for this page:</p>
<pre><code><meta property="og:title" content="Freshly Baked Dog Toe Beans" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://shenanigans.dog/beans/beans.png" />
<meta property="og:description" content="Look at these magnificent little paw pads. 10/10 would boop. Warning: May cause uncontrollable squealing." />
<meta property="og:url" content="https://shenanigans.dog/beans/" /></code></pre>
<a href="beans.png" target="_blank"><button>just wanna see the beans?</button></a>
</body>
</html>