Add back open graph to articles
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-04-07 19:13:43 -04:00
parent 59ded1221f
commit 6aadc28487
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
3 changed files with 16 additions and 4 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View file

@ -18,7 +18,6 @@ paragraph
1. list 1. list
2. list 2. list
3. list
``` ```
The benefit of using djot is that it compiles directly to HTML, thus the jorunalists who have joined Compute don't need to learn HTML to write articles. They also don't need to learn a clunky slow website editor like Wix or Squarespace. The benefit of using djot is that it compiles directly to HTML, thus the jorunalists who have joined Compute don't need to learn HTML to write articles. They also don't need to learn a clunky slow website editor like Wix or Squarespace.

View file

@ -5,8 +5,21 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{title}}</title> <title>{{title}}</title>
<meta content="{{title}}" property="og:title">
<meta content="{{title}}" property="twitter:title"> <meta content="{{title}}" property="twitter:title">
<meta property="og:title" content="{{title}}">
<meta property="og:type" content="article">
<meta property="og:image" content="/images/logo-z.png">
<meta property="og:image:width" content="310">
<meta property="og:image:height" content="310">
<meta property="og:image:alt" content="The Compute logo">
<meta property="og:site_name" content="Compute: Lake Braddock's Comp-Sci Journal">
<meta property="og:article:published_time" content="{{published_og}}">
<meta property="og:article:modified_time" content="{{modified_og}}">
{% for author in authors %}
<meta property="og:article:author:first_name" content="{{ author.full_name | split(pat=' ') | nth(n=0) }}">
<meta property="og:article:author:first_name" content="{{ author.full_name | split(pat=' ') | nth(n=1) }}">
<meta property="og:article:author:username" content="{{author.username}}">
{% endfor %}
<meta content="width=device-width, initial-scale=1" name="viewport"> <meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Webflow" name="generator"> <meta content="Webflow" name="generator">
<link href="/css/normalize.css" rel="stylesheet" type="text/css"> <link href="/css/normalize.css" rel="stylesheet" type="text/css">
@ -55,4 +68,4 @@
<script src="/js/webflow.js" type="text/javascript"></script> <script src="/js/webflow.js" type="text/javascript"></script>
</body> </body>
</html> </html>