-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update meta tags #2325
Merged
Merged
Update meta tags #2325
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9eff6a9
Add Matomo tracking
samajammin 5795a28
Add development instructions to README
samajammin 6f3bb48
Add dynamic metadata for EIP pages
samajammin 2ff2027
Escape title strings
samajammin cf16475
Remove Matomo
samajammin 8ff00e0
Merge remote-tracking branch 'ethereum/master' into HEAD
axic a71c18d
Use variables from _config.yaml in head.html
axic 48af471
Omit Jekyll version from header
axic 20f4118
Also use twitter_username from _config.yml
axic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this is needed since we're know using a custom head that references the file. Learn more here: https://github.com/jekyll/minima#customizing-templates