Skip to content

Commit

Permalink
add opengraph meta tags for social embed (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom authored Aug 6, 2024
1 parent e6d7d47 commit 7686e78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/_data/site.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
images:
brick: https://raw.githubusercontent.com/redbrick/design-system/main/assets/logos/redbrick.svg
emote: https://raw.githubusercontent.com/redbrick/design-system/main/assets/logos/resign-emote.png
logo: https://raw.githubusercontent.com/redbrick/design-system/main/assets/logos/logo.png
society:
name: Redbrick
tagline: DCU's Networking Society.
Expand Down
10 changes: 9 additions & 1 deletion src/_layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ title: Redbrick
window.userAgent = new UAParser()
</script>

<meta property="og:type" content="website" >
<meta property="og:title" content="{{site.society.name}}" >
<meta property="og:description" content="{{site.society.tagline}}" >
<meta property="og:image" content="{{site.images.logo}}" >
<meta property="og:image:type" content="image/png" >
<meta property="og:image:width" content="120" >
<meta property="og:image:height" content="63" >

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/TextPlugin.min.js"></script>
Expand All @@ -39,4 +47,4 @@ title: Redbrick
<script type="module" src="https://cdn.jsdelivr.net/npm/@11ty/[email protected]/is-land.min.js"></script>
</head>
{{ content | safe }}
</html>
</html>

0 comments on commit 7686e78

Please sign in to comment.