Skip to content

Commit

Permalink
Add JSON-LD for EIPS (#2796)
Browse files Browse the repository at this point in the history
* Add JSON-LD for EIPS

* Update eip.html
  • Loading branch information
fulldecent authored Jul 21, 2020
1 parent 1d7b6cb commit b610d64
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _layouts/eip.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,22 @@ <h1 class="page-heading">
{{ content }}

</div>
{% comment %}
Article schema specification:
https://schema.org/Article
{% endcomment %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"author": "{% include authorlist.html authors=page.author %}",
"name": "EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Last Call" %} [DRAFT]{% endif %}",
"dateCreated": "{{ page.created | date: "%Y-%m-%d" }}",
{% if page["discussions-to"] != undefined %}
"discussionUrl": "{{ page["discussions-to"] | uri_escape }}",
{% endif %}
"inLanguage": "en-US",
"license": "#copyright",
"copyrightYear": "{{ page.created | date: "%Y" }}"
}
</script>

0 comments on commit b610d64

Please sign in to comment.