forked from team/site
Add OGP description
This commit is contained in:
parent
183d010371
commit
5f7ab3b478
|
@ -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()?>
|
||||
|
|
Loading…
Reference in New Issue