Skip to content

Commit

Permalink
Now for the head
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Mar 29, 2023
1 parent dd3fd58 commit 8bfdd2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if page.layout == "eip" %}
{% assign eip = page.url | split: "eip-" | last | xml_escape %}
{% if page.category == "ERC" %}
<title>ERC-{{ page.eip }}: {{ page.title | escape }}</title>
<meta propery="og:title" content="ERC-{{ page.eip }}: {{ page.title | escape }}" />
<title>ERC-{{ eip }}: {{ page.title | escape }}</title>
<meta propery="og:title" content="ERC-{{ eip }}: {{ page.title | escape }}" />
{% else %}
<title>EIP-{{ page.eip }}: {{ page.title | escape }}</title>
<meta property="og:title" content="EIP-{{ page.eip }}: {{ page.title | escape }}" />
<title>EIP-{{ eip }}: {{ page.title | escape }}</title>
<meta property="og:title" content="EIP-{{ eip }}: {{ page.title | escape }}" />
{% endif %}
<meta name="description" content="{{page.description | escape }}" />
<meta property="og:description" content="{{page.description | escape }}" />
Expand Down

0 comments on commit 8bfdd2b

Please sign in to comment.