mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Switch from JSON-LD to RDFa for internal metadata
This commit is contained in:
parent
a12200c1ac
commit
99f1c1537a
7 changed files with 125 additions and 36 deletions
|
@ -23,7 +23,7 @@ print('<?xml version="1.0" encoding="utf-8"?>');
|
|||
print("\n");
|
||||
?><!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<head prefix="twitter: https://twitter.com schema: https://schema.org"><? /* the og RDFa prefix is part of the RDFa spec */ ?>
|
||||
<meta charset="utf-8"/>
|
||||
<title><? if($title != ''){ ?><?= Formatter::ToPlainText($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover.</title>
|
||||
<? if($description != ''){ ?><meta content="<?= Formatter::ToPlainText($description) ?>" name="description"/><? } ?>
|
||||
|
@ -49,11 +49,6 @@ print("\n");
|
|||
<meta content="summary_large_image" name="twitter:card"/>
|
||||
<meta content="@standardebooks" name="twitter:site"/>
|
||||
<meta content="@standardebooks" name="twitter:creator"/>
|
||||
<? if(isset($jsonld)){ ?>
|
||||
<script type="application/ld+json">
|
||||
<?= $jsonld ?>
|
||||
</script>
|
||||
<? } ?>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue