Skip to content

Commit

Permalink
feat: use subhead as page description if present
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus authored Nov 17, 2024
1 parent 60260b5 commit cc40b88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/_includes/layouts/base.webc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
<meta property="og:title" :content="title" />
<meta property="og:type" content="website" />
<meta property="og:url" :content="site.url + page.url" />
<meta webc:if="teaser" property="og:description" :content="teaser" />
<meta
webc:if="subhead || teaser"
property="og:description"
:content="subhead ?? teaser"
/>

<script webc:type="js">
const getPreviewImage = (id) => {
Expand Down

0 comments on commit cc40b88

Please sign in to comment.