Skip to content

Commit 05bbc09

Browse files
committed
Try to trigger advanced markdown unfurling
1 parent 895369f commit 05bbc09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ aws.initConfig(awsProps)
345345
const sources = utils.glGetEditorSources(config.content);
346346
if (sources.length === 1) {
347347
const lang = languages[sources[0].language];
348-
metadata.ogDescription = sources[0].source;
348+
metadata.ogDescription = '```' + lang.id + '\n' + sources[0].source + '\n```';
349+
//metadata.ogDescription = sources[0].source;
349350
if (lang) {
350351
metadata.ogTitle += ` - ${lang.name}`;
351352
}

views/head.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ meta(name="twitter:card" content="summary")
1717
meta(name="twitter:site" content="@mattgodbolt")
1818
meta(property="og:image" content=require("ce-icon.png"))
1919
meta(property="og:image:secure_url" content=require("ce-icon.png"))
20-
meta(property="og:image:type" content="image/jpg")
20+
meta(property="og:image:type" content="image/png")
2121
meta(property="og:image:width" content="145")
2222
meta(property="og:image:height" content="145")
2323
meta(name="author" content="Matt Godbolt")

0 commit comments

Comments
 (0)