Skip to content

Commit

Permalink
✨ feat: add Twitter card meta tags for better social media sharing pr…
Browse files Browse the repository at this point in the history
…eview
watzon committed Nov 18, 2024
1 parent b974220 commit 83de60a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/partials/head.hbs
Original file line number Diff line number Diff line change
@@ -7,12 +7,16 @@

<!-- Open Graph -->
<meta property="og:title" content="Paste69">
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:description" content="Paste69 is an fast and open source pastebin, file bin, and link shortener written in Go.">
{{#if isPaste}}
<meta property="og:image" content="{{baseUrl}}/p/{{id}}/image">
<meta name="twitter:image" content="{{baseUrl}}/p/{{id}}/image" />
{{else}}
<meta property="og:image" content="{{baseUrl}}/public/images/0x45-og.png">
<meta name="twitter:image" content="{{baseUrl}}/public/images/0x45-og.png" />
{{/if}}

<meta property="og:url" content="{{baseUrl}}">

{{!-- Custom head content can be added here --}}

0 comments on commit 83de60a

Please sign in to comment.