Skip to content

Commit

Permalink
Condition some logic on the layout type rather than the existence of …
Browse files Browse the repository at this point in the history
…variables.
  • Loading branch information
alexrp committed Jan 27, 2024
1 parent ff80c17 commit 6f75dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/core.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<meta name="og:type"
content="{{ 'article' if layout == 'news' else 'website' }}" />
<meta name="og:title"
content="{{ title + ' | ' if title }}TERA Arise" />
content="{{ title + ' | ' if layout == 'news' }}TERA Arise" />
<meta name="og:description"
content="{{ summary if summary else 'A game resurrection project for the final build of TERA EU.' }}" />
content="{{ summary if layout == 'news' else 'A game resurrection project for the final build of TERA EU.' }}" />
<meta name="og:url"
content="https://tera-arise.io{{ page.url | url }}" />
<meta name="og:image"
Expand Down

0 comments on commit 6f75dc8

Please sign in to comment.