Skip to content

Commit

Permalink
chore: add metadata to og title
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Feb 25, 2025
1 parent 42a30e9 commit cd79ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/layouts/main.edge
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

<meta property="og:type" content="website">
<meta property="og:url" content="https://docs.adonisjs.com{{ file.frontmatter.permalink }}">
<meta property="og:title" content="{{ file.frontmatter.title }}">
<meta property="og:title" content="{{ file.frontmatter.title }} ({{ file.frontmatter.category }}) | AdonisJS Documentation">
@if(file.frontmatter.summary)
<meta name="og:description" content="{{ file.frontmatter.summary }}">
@end

<meta property="twitter:url" content="https://docs.adonisjs.com{{ file.frontmatter.permalink }}">
<meta property="twitter:title" content="{{ file.frontmatter.title }}">
<meta property="twitter:title" content="{{ file.frontmatter.title }} ({{ file.frontmatter.category }}) | AdonisJS Documentation">
@if(file.frontmatter.summary)
<meta name="twitter:description" content="{{ file.frontmatter.summary }}">
@end
Expand Down

0 comments on commit cd79ca9

Please sign in to comment.