Add Open Graph to articles
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-04-07 14:32:45 -04:00
parent d37ad8ef32
commit bad3c5e0d3
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -6,6 +6,16 @@
<meta charset="utf-8">
<title>{{title}}</title>
<meta content="{{title}}" property="og:title">
<meta content="article" property="og:type">
<meta content="/images/logo-z.svg" property="og:image">
<meta content="{{published_og}}" property="og:article:published_time">
<meta content="{{modified_og}}" property="og:article:modified_time">
{% for author in authors %}
<meta content="{{ author.full_name | split(pat=' ') | nth(n=0) }}" property="og:article:author:first_name">
<meta content="{{ author.full_name | split(pat=' ') | nth(n=1) }}" property="og:article:author:last_name">
<meta content="{{author.username}}" property="og:article:author:username">
{% endfor %}
<meta content="Compute: Lake Braddock's Comp-sci journal" property="og:site_name">
<meta content="{{title}}" property="twitter:title">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Webflow" name="generator">
@ -53,4 +63,4 @@
<script src="/js/webflow.js" type="text/javascript"></script>
</body>
</html>
</html>