Skip to content

Commit 03e9ae2

Browse files
Fix: Social images for shader pages should now work
1 parent 8d160ed commit 03e9ae2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
git:
1212
url: https://github.com/Flutter-Bounty-Hunters/static_shock/
1313
path: packages/static_shock
14-
ref: 145_add-tailwind-css-support
14+
ref: main
1515

1616
dev_dependencies:
1717
lints: ^2.0.0

source/_includes/layouts/shader_page.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<meta property="og:url" content="{{ homepage_url }}" />
2323
<meta property="og:title" content="{{ shader.title }} | Flutter Shaders" />
2424
<meta property="og:description" content="{{ description }}" />
25-
<meta property="og:image" content="{{ homepage_url }}/images/social.png" />
25+
<meta property="og:image" content="{{ homepage_url }}{{ shader.screenshot | pathRelativeToPage }}" />
2626
<meta property="og:type" content="website" />
2727

2828
<!-- Twitter -->
@@ -31,7 +31,7 @@
3131
<meta name="twitter:url" content="{{ homepage_url }}" />
3232
<meta name="twitter:title" content="{{ shader.title }} | Flutter Shaders" />
3333
<meta name="twitter:description" content="{{ description }}" />
34-
<meta name="twitter:image" content="{{ homepage_url }}/images/social.png" />
34+
<meta name="twitter:image" content="{{ homepage_url }}{{ shader.screenshot | pathRelativeToPage }}" />
3535

3636
<link href="/styles/tailwind.css" rel="stylesheet">
3737

0 commit comments

Comments
 (0)