forked from ethereum/ERCs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Website: Human-friendly preamble (#6017)
* Website: Human-friendly preamble * Fix syntax error * Fix more syntax errors * Indicate authors a little better * Fix small typo * Fix another syntax error * Make use of blockquotes for withdraw reason * Remove redunant/removed items * Add additional linebreak * Include bootstrap CSS * Move to correct folder * Add responsive meta tag * Badges fade on hover * Commit changes so far * Temporarily delete integrities while in development * Delete custom-head.html * Update eip.html * Update eip.html * Update style.scss * Remove bootstrap references * Use remove theme that adds markdown * Use regular minima again * Add bootstrap styling * Remove MathJax and bootstrap from eips rendering * ... and place it in the head * Fix typos * Make header work with bootstrap * Add category badges * Update styles * Fix integrities * Upgrade to mathjax v3 * Update style.scss * Use correct mathjax integrity * Change badge color scheme * Move badges to before title * Always link to discussion * Automatically open discussion links in new tab * Reorder preamble items & fix some rendering issues * Fix page title for ERCs * Add descriptions * @SamWilsn's authorlist suggestion * Some changes that @SamWilsn suggested * Update authorlist to use no break spaces * Make data wrap better & center-align discussion link * Move @ into GitHub link * Actually center link * Use table layout instead of an actual table * Fix table formatting * Go back to normal table layout * Add magic sauce * Add unknown magical @SamWilsn code I hope you know what you're doing Co-authored-by: Sam Wilson <[email protected]> * TIL there IS an else tag * 🤦♂️🤦♂️ Double facepalm * Add inline svg style * Use inline SVG styling & add discussion bubble * Remove third typo * Add styling to make SVG links a bit better * Add no-underline class * Add no-underline class to icon links * Add padding to footer to fix some styling issues * Target the right class * Fix footer * Use different target for footer fix * Final(tm) footer fix * Use Sam's magic answer with SCSS and see how it turns out * Fix it * Update content-width to 100% * Oops typo * Make icons a tad bit smaller * Make badges a bit bigger * Add EIP- prefix to requires items TODO: maybe use ERC prefix when needed? * Fix width * Lower font size Co-authored-by: Sam Wilson <[email protected]>
- Loading branch information
Showing
6 changed files
with
187 additions
and
92 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% assign eips=include.eips|split:"," %} | ||
{% for eipnum in eips %} | ||
<a href="{{eipnum|strip|prepend:"eip-" }}">{{eipnum|strip}}</a>{% if forloop.last == false %}, {% endif %} | ||
<a href="{{eipnum|strip|prepend:"eip-" }}">EIP-{{eipnum|strip}}</a>{% if forloop.last == false %}, {% endif %} | ||
{% endfor %} |
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 |
---|---|---|
|
@@ -3,8 +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" %} | ||
<title>EIP-{{ page.eip }}: {{ page.title | escape }}</title> | ||
<meta property="og:title" content="EIP-{{ page.eip }}: {{ page.title | escape }}" /> | ||
{% if page.category == "ERC" %} | ||
<title>ERC-{{ page.eip }}: {{ page.title | escape }}</title> | ||
<meta propery="og:title" content="ERC-{{ page.eip }}: {{ page.title | escape }}" /> | ||
{% else %} | ||
<title>EIP-{{ page.eip }}: {{ page.title | escape }}</title> | ||
<meta property="og:title" content="EIP-{{ page.eip }}: {{ page.title | escape }}" /> | ||
{% endif %} | ||
<meta name="description" content="{{page.description | escape }}" /> | ||
<meta property="og:description" content="{{page.description | escape }}" /> | ||
<meta name="twitter:description" content="{{page.description | escape }}" /> | ||
|
@@ -36,5 +41,29 @@ | |
</script> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" /> | ||
{%- feed_meta -%} | ||
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML" integrity="sha256-nlrDrBTHxJJlDDX22AS33xYI1OJHnGMDhiYMSe2U0e0=" crossorigin="anonymous"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> | ||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script> | ||
<script type="text/javascript"> | ||
document.addEventListener("DOMContentLoaded", (event) => { | ||
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') | ||
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)) | ||
}); | ||
</script> | ||
<script type="text/javascript"> | ||
window.MathJax = { | ||
loader: { | ||
load: ['input/tex-base', 'output/chtml', 'ui/lazy'] | ||
}, | ||
tex: { | ||
inlineMath: [['$', '$']], | ||
displayMath: [['$$', '$$']], | ||
processEscapes: true, | ||
processEnvironments: false, | ||
processRefs: false | ||
} | ||
}; | ||
</script> | ||
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-mml-chtml.js" integrity="sha384-/1zmJ1mBdfKIOnwPxpdG6yaRrxP6qu3eVYm0cz2nOx+AcL4d3AqEFrwcqGZVVroG" crossorigin="anonymous"></script> | ||
</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,29 @@ | ||
<header class="site-header" role="banner"> | ||
<div class="wrapper"> | ||
{%- assign default_paths = site.pages | map: "path" -%} | ||
{%- assign page_paths = site.header_pages | default: default_paths -%} | ||
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a> | ||
|
||
{%- if page_paths -%} | ||
<nav class="site-nav d-flex"> | ||
<input type="checkbox" id="nav-trigger" class="nav-trigger" /> | ||
<label for="nav-trigger"> | ||
<span class="menu-icon"> | ||
<svg viewBox="0 0 18 15" width="18px" height="15px"> | ||
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/> | ||
</svg> | ||
</span> | ||
</label> | ||
|
||
<div class="trigger row p-2"> | ||
{%- for path in page_paths -%} | ||
{%- assign my_page = site.pages | where: "path", path | first -%} | ||
{%- if my_page.title -%} | ||
<a class="page-link col" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> | ||
{%- endif -%} | ||
{%- endfor -%} | ||
</div> | ||
</nav> | ||
{%- endif -%} | ||
</div> | ||
</header> |
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