forked from team/site
1
0
Fork 0

Add OGP description

This commit is contained in:
khuxkm 2018-06-09 10:28:17 -04:00 committed by Ben Harris
parent 183d010371
commit 5f7ab3b478
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
<meta property='og:type' content='website'>
<meta property='og:image' content='https://git.tilde.team/avatars/26f6db9866154eafaa167a9471c313ea'>
<meta property='og:url' content='https://tilde.team/<?=$_SERVER['REQUEST_URI']?>'>
<meta property='og:description' content='tilde.team wiki'>
<h1>tilde.team wiki</h1>
@ -55,6 +56,7 @@ if (!isset($_GET["page"]) || !file_exists("pages/{$_GET['page']}.md")) {
<meta property='og:type' content='website'>
<meta property='og:image' content='https://git.tilde.team/avatars/26f6db9866154eafaa167a9471c313ea'>
<meta property='og:url' content='https://tilde.team<?=$_SERVER['REQUEST_URI']?>'>
<meta property='og:description' content='<?=$pg->getYAML()['description'] ?? "tilde.team wiki article {$pg->getYAML()['title']}"?>'>
<hr>
<?=$pg->getContent()?>