Skip to content

Commit

Permalink
feat: open graph meta tags (#871)
Browse files Browse the repository at this point in the history
* Added open graph meta tags ( Facebook )

* feat : add a preview image for website.

The image would act as a site preview across social networks.

* Updated head.pug for suggested changes.

Replaced "name" field in meta tags with "property", And replaced the og:image field value to a relative image path.

* Added twitter open graph meta tags.

---------

Co-authored-by: Pulkit Saini <54940154+pulbee@users.noreply.github.com>
  • Loading branch information
pulbyte and pulbyte authored Oct 3, 2024
1 parent 2c0dbac commit a182dc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added src/img/devswag-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/pug/includes/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ meta(http-equiv="X-UA-Compatible" content="IE=edge")

meta(name="description" content="swag opportunities for developers")

meta(property="og:site_name" content="devSwag")
meta(property="og:title" content="devSwag")
meta(property="og:url" content="https://devswag.io/")
meta(property="og:type" content="website")
meta(property="og:description" content="swag opportunities for developers")
meta(property="og:image" content="/assets/img/devswag-card.png")

meta(property="twitter:card" content="summary_large_image")
meta(property="twitter:title" content="devSwag")
meta(property="twitter:url" content="https://devswag.io/")
meta(property="twitter:description" content="swag opportunities for developers")
meta(property="twitter:image" content="/assets/img/devswag-card.png")

link(rel="icon" type="image/png" href="/assets/img/logo.png")
link(rel="apple-touch-icon" size="128x128" href="/assets/img/logo.png")

Expand Down

0 comments on commit a182dc5

Please sign in to comment.