Skip to content

Commit

Permalink
Merge pull request #225 from LibreCodeCoop/feat/add-support-to-open-g…
Browse files Browse the repository at this point in the history
…raph

chore: add support to Open Graph
  • Loading branch information
Any97Cris authored Aug 2, 2024
2 parents a3ad8ed + 107995a commit afb15ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/_layouts/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
<title>{{ $page->title }}</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
@if (!empty($og_image))
<meta property="og:image" content="{{ $og_image }}"/>
@else
<meta property="og:image" content="{{ $page->baseUrl }}assets/images/coop.png"/>
@endif
<meta property="og:url" content="{{ $page->getUrl() }}">
<meta property="og:type" content="website">
<meta property="og:title" content="LibreCode">
<meta property="og:description" content="{{ $page->description }}">

<link rel="canonical" href="{{ $page->getUrl() }}">
<meta name="description" content="{{ $page->description }}">

Expand Down

0 comments on commit afb15ad

Please sign in to comment.