Skip to content

Commit

Permalink
Update 11ty metagen syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jegtnes committed Jan 24, 2024
1 parent d4ff63f commit 3e49756
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/_layouts/global.njk
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{% if twitterLabel1 and twitterData1 and twitterLabel2 and twitterData2 %}
{% set custom = [
["meta", "", {name: "twitter:label1", content: twitterLabel1 }],
["meta", "", {name: "twitter:data1", content: twitterData1 }],
["meta", "", {name: "twitter:label2", content: twitterLabel2 }],
["meta", "", {name: "twitter:data2", content: twitterData2 }]
{ tag: 'meta', attrs: { name: "twitter:label1", content: twitterLabel1 } },
{ tag: 'meta', attrs: { name: "twitter:data1", content: twitterData1 } },
{ tag: 'meta', attrs: { name: "twitter:label2", content: twitterLabel2 } },
{ tag: 'meta', attrs: { name: "twitter:data2", content: twitterData2 } }
] %}
{% endif %}

<!DOCTYPE html>
<html lang="en-GB">
<head>
Expand Down

0 comments on commit 3e49756

Please sign in to comment.