-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Matomo tracking * Add development instructions to README * Add dynamic metadata for EIP pages * Escape title strings * Remove Matomo * Use variables from _config.yaml in head.html * Omit Jekyll version from header * Also use twitter_username from _config.yml
- Loading branch information
1 parent
2c12dfd
commit 8350c1f
Showing
4 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{% if page.layout == "eip" %} | ||
<title>EIP {{ page.eip }}: {{ page.title | escape }}</title> | ||
<meta property="og:title" content="EIP {{ page.eip }}: {{ page.title | escape }}" /> | ||
<meta | ||
name="description" | ||
content="Details on Ethereum Improvement Proposal {{page.eip}} (EIP {{page.eip}}): {{page.title | escape}}" | ||
/> | ||
<meta | ||
property="og:description" | ||
content="Details on Ethereum Improvement Proposal {{page.eip}} (EIP {{page.eip}}): {{page.title | escape}}" | ||
/> | ||
<meta name="twitter:description" content="Details on Ethereum Improvement Proposal {{page.eip}} (EIP {{page.eip}}): {{page.title | escape}}" /> | ||
{% else %} | ||
<title>{{ page.title | escape }} | {{site.title}}</title> | ||
<meta | ||
property="og:title" | ||
content="{{ page.title | escape }} | {{site.title}}" | ||
/> | ||
<meta name="description" content="{{site.description}}" /> | ||
<meta property="og:description" content="{{site.description}}" /> | ||
<meta name="twitter:description" content="{{site.description}}" /> | ||
{% endif %} | ||
<meta name="generator" content="Jekyll" /> | ||
<meta property="og:locale" content="en_US" /> | ||
<link rel="canonical" href="{{site.url}}{{page.url}}" /> | ||
<meta property="og:url" content="{{site.url}}{{page.url}}" /> | ||
<meta property="og:site_name" content="{{site.title}}" /> | ||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:site" content="@{{site.twitter_username}}" /> | ||
<script type="application/ld+json"> | ||
{ | ||
"@type": "WebSite", | ||
"url": "{{site.url}}", | ||
"name": "{{site.title}}", | ||
"description": "{{site.description}}", | ||
"@context": "https://schema.org" | ||
} | ||
</script> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" /> | ||
{%- feed_meta -%} | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
# Only the main Sass file needs front matter (the dashes are enough) | ||
--- | ||
|
||
@import "minima"; |