diff --git a/_includes/head.html b/_includes/head.html index 7d23b3eafbd7bd..c05f8c4f561f2f 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,12 +3,13 @@ {% if page.layout == "eip" %} + {% assign eip = page.url | split: "eip-" | last | xml_escape %} {% if page.category == "ERC" %} - ERC-{{ page.eip }}: {{ page.title | escape }} - + ERC-{{ eip }}: {{ page.title | escape }} + {% else %} - EIP-{{ page.eip }}: {{ page.title | escape }} - + EIP-{{ eip }}: {{ page.title | escape }} + {% endif %} diff --git a/_layouts/eip.html b/_layouts/eip.html index f41e28db0562fc..5df1f5df446663 100644 --- a/_layouts/eip.html +++ b/_layouts/eip.html @@ -2,60 +2,111 @@ layout: default --- -{% if page.status == "Draft" %} -
- ⚠️ This EIP is not recommended for general use or implementation as it is likely to change. -
-{% elsif page.status == "Review" %} -
- πŸ“– This EIP is in the review stage. It is subject to changes and feedback is appreciated. -
+{% assign eip = page.url | split: "eip-" | last | xml_escape %} -{% elsif page.status == "Last Call" %} -
- πŸ“’ This EIP is in the last call for review stage. The authors wish to finalize the EIP and appreciate feedback. -
-{% elsif page.status == "Stagnant" %} -
- 🚧 This EIP had no activity for at least 6 months. -
-{% elsif page.status == "Withdrawn" %} -
- πŸ›‘ This EIP has been withdrawn. -
-{% endif %} + + + Alert + + + + Source + + + + Discuss + + +
-

- EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }} - Source -

-

{{ page.description | xml_escape }}

- - - {% if page["discussions-to"] != undefined %} - + + {% if page.status == "Stagnant" %} + 🚧 Stagnant {% endif %} - + {% if page.status == "Withdrawn" %} + πŸ›‘ Withdrawn {% endif %} - - - {% if page.category != undefined %} - + {% if page.status == "Draft" or page.status == "Review" %} + ⚠️ {{ page.status }} {% endif %} - - {% if page.updated != undefined %} - + {% if page.status == "Last Call" %} + πŸ“’ Last Call {% endif %} - {% if page.requires != undefined %} - + {% if page.category == "ERC" %} + Standards Track: ERC + {% elsif page.category == "Interface" %} + Standards Track: Interface + {% elsif page.category == "Networking" %} + Standards Track: Networking + {% elsif page.category == "Core" %} + Standards Track: Core + {% elsif page.type == "Informational" %} + Informational + {% elsif page.type == "Meta" %} + Meta {% endif %} - {% if page["withdrawal-reason"] != undefined %} - + +

+ {% if page.category == "ERC" %} + ERC-{{ eip }}: {{ page.title | xml_escape }} + {% elsif page.category != "ERC" %} + EIP-{{ eip }}: {{ page.title | xml_escape }} {% endif %} + + + + + + + + + + +

+

{{ page.description | xml_escape }}

+
Author{% include authorlist.html authors=page.author %}
Discussions-To{{ page["discussions-to"] | xml_escape }}
Status{{ page.status | xml_escape }} - {% if page.last-call-deadline != undefined %} -
Last Call Deadline{{ page.last-call-deadline | xml_escape }}
Type{{ page.type | xml_escape }}
Category{{ page.category | xml_escape }}
Created{{ page.created | xml_escape }}
Updated{{ page.updated | xml_escape }}
Requires{% include eipnums.html eips=page.requires %}
Withdrawal reason{{ page["withdrawal-reason"] | xml_escape }}
+ + + + + + {% if page.created != undefined %} + + + + + {% endif %} + {% if page.last-call-deadline != undefined %} + + + + + {% endif %} + {% if page.status != "Review" and page.status != "Last Call" and page.status != "Final" and page.discussions-to != undefined %} + + + + + {% endif %} + {% if page.requires != undefined %} + + + + + {% endif %} +
Authors{% include authorlist.html authors=page.author %}
Created{{ page.created }}
Last Call Deadline{{ page.last-call-deadline }}
Discussion Link{{ page.discussions-to | xml_escape }}
Requires{% include eipnums.html eips=page.requires %}
+
+ + {% if page.status == "Review" or page.status == "Last Call" %} + + {% endif %}

Table of Contents

@@ -70,7 +121,7 @@

Citation

IEEE specification for reference formatting: https://ieee-dataport.org/sites/default/files/analysis/27/IEEE%20Citation%20Guidelines.pdf {% endcomment %} -

{% include authorlist.html authors=page.author %}, "EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Last Call" %} [DRAFT]{% endif %}," Ethereum Improvement Proposals, no. {{ page.eip | xml_escape }}, {{ page.created | date: "%B %Y" }}. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-{{ page.eip | xml_escape }}.

+

{% include authorlist.html authors=page.author %}, "{% if page.category == "ERC" %}ERC{% else %}EIP{% endif %}-{{ eip }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Stagnant" or page.status == "Withdrawn" or page.status == "Review" or page.status == "Last Call" %} [DRAFT]{% endif %}," Ethereum Improvement Proposals, no. {{ page.eip | xml_escape }}, {{ page.created | date: "%B %Y" }}. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-{{ page.eip | xml_escape }}.

{% comment %} Article schema specification: @@ -80,14 +131,19 @@

Citation

{ "@context": "http://schema.org", "@type": "TechArticle", - "headline": "EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Last Call" %} [DRAFT]{% endif %}", + {% if page.category == "ERC" %} + "headline": "ERC-{{ eip }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Stagnant" or page.status == "Withdrawn" or page.status == "Review" or page.status == "Last Call" %} [DRAFT]{% endif %}", + "name": "ERC-{{ eip }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Stagnant" or page.status == "Withdrawn" or page.status == "Review" or page.status == "Last Call" %} [DRAFT]{% endif %}", + {% else %} + "headline": "EIP-{{ eip }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Stagnant" or page.status == "Withdrawn" or page.status == "Review" or page.status == "Last Call" %} [DRAFT]{% endif %}", + "name": "EIP-{{ eip }}: {{ page.title | xml_escape }}{% if page.status == "Draft" or page.status == "Stagnant" or page.status == "Withdrawn" or page.status == "Review" or page.status == "Last Call" %} [DRAFT]{% endif %}", + {% endif %} "author": "{{ 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" }}", "datePublished": "{{ page.created | date: "%Y-%m-%d" }}", -{% if page["discussions-to"] != undefined %} - "discussionUrl": "{{ page["discussions-to"] | uri_escape }}", -{% endif %} + {% if page.discussions-to != undefined %} + "discussionUrl": "{{ page.discussions-to | uri_escape }}", + {% endif %} "inLanguage": "en-US", "license": "#copyright", "copyrightYear": "{{ page.created | date: "%Y" }}" diff --git a/rss/erc-last-call.xml b/rss/erc-last-call.xml index 5ba15cf2f0fbba..9f6513f5fca3f3 100644 --- a/rss/erc-last-call.xml +++ b/rss/erc-last-call.xml @@ -14,7 +14,7 @@ layout: null {% if eip.category == "ERC" %} {% if eip.status == "Last Call" %} {% capture description %} -

EIP #{{ eip.eip }} - {{eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

+

{{ eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

{% if eip.discussions-to %}

The author has requested that discussions happen at the following URL: {{ eip.discussions-to }}

{% endif %} diff --git a/rss/erc.xml b/rss/erc.xml index 48f58f598c8dfd..153567a5e3be56 100644 --- a/rss/erc.xml +++ b/rss/erc.xml @@ -13,7 +13,7 @@ layout: null {% for eip in eips %} {% if eip.category == "ERC" %} {% capture description %} -

EIP #{{ eip.eip }} - {{eip.title }} is in the {{ eip.category }} category of type {{ eip.type }} and was just updated.

+

{{ eip.title }} is in the {{ eip.category }} category of type {{ eip.type }} and was just updated.

{% if eip.discussions-to %}

The author has requested that discussions happen at the following URL: {{ eip.discussions-to }}

{% endif %} diff --git a/rss/last-call.xml b/rss/last-call.xml index da06188ca24741..c669c36616c3d6 100644 --- a/rss/last-call.xml +++ b/rss/last-call.xml @@ -13,7 +13,7 @@ layout: null {% for eip in eips %} {% if eip.status == "Last Call" %} {% capture description %} -

EIP #{{ eip.eip }} - {{eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

+

{{ eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

{% if eip.discussions-to %}

The author has requested that discussions happen at the following URL: {{ eip.discussions-to }}

{% endif %} diff --git a/rss/nonerc-last-call.xml b/rss/nonerc-last-call.xml index 17f09393674463..f48b87c283f96f 100644 --- a/rss/nonerc-last-call.xml +++ b/rss/nonerc-last-call.xml @@ -14,7 +14,7 @@ layout: null {% unless eip.category == "ERC" %} {% if eip.status == "Last Call" %} {% capture description %} -

EIP #{{ eip.eip }} - {{eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

+

{{ eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

{% if eip.discussions-to %}

The author has requested that discussions happen at the following URL: {{ eip.discussions-to }}

{% endif %} diff --git a/rss/nonerc.xml b/rss/nonerc.xml index 327e47827ae964..c62c3041ae5177 100644 --- a/rss/nonerc.xml +++ b/rss/nonerc.xml @@ -14,7 +14,7 @@ layout: null {% unless eip.category == "ERC" %} {% if eip.status == "Last Call" %} {% capture description %} -

EIP #{{ eip.eip }} - {{eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

+

{{ eip.title }} is in Last Call status. It is authored by {{ eip.author }} and was originally created {{ eip.created }}. It is in the {{ eip.category }} category of type {{ eip.type }}. Please review and note any changes that should block acceptance.

{% if eip.discussions-to %}

The author has requested that discussions happen at the following URL: {{ eip.discussions-to }}

{% endif %}