Skip to content

Commit

Permalink
v2 blog post: social card
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Mar 14, 2023
1 parent 2c03434 commit 0edefd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/news/02-bref-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ layout: news-article
articleDate: March 2023
author: Matthieu Napoli
authorGithub: mnapoli
socialCard: https://bref.sh/docs/news/02/social-card.png
---

The work on what would be Bref 2.0 started in October 2021, about 1.5 year ago. We went through many different strategies, experiments, rewrites, over **700 commits** to finally land with the stable release.
Expand Down
Binary file added docs/news/02/social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions website/template/layout.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
<meta property="og:description" content="{{ metaDescription|e('html_attr') }}" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="Bref" />
<meta property="og:image" content="https://bref.sh/img/logo-small.png" />
<meta name="twitter:card" content="summary" />
{% if socialCard|default %}
<meta property="og:image" content="{{ socialCard }}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="{{ socialCard }}">
{% else %}
<meta property="og:image" content="https://bref.sh/img/logo-small.png" />
<meta name="twitter:card" content="summary" />
{% endif %}
<meta name="twitter:title" content="{{ metaTitle|e('html_attr') }}" />
<meta name="twitter:description" content="{{ metaDescription|e('html_attr') }}" />
<meta name="twitter:creator" content="@brefphp">
<meta name="google-site-verification" content="RRmKDrWI2l69B0nMwv4ndrYOHSuaTBfarvCgtJxMpXA" />
{#<meta name="twitter:site" content="@brefphp" />#}
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32" />
Expand Down

0 comments on commit 0edefd1

Please sign in to comment.