re-add jekyll changes without the wiki pages

This commit is contained in:
Adam Schmideg
2019-03-27 09:31:41 +01:00
parent e4d2bf0696
commit 6c9d709310
9 changed files with 684 additions and 54 deletions

34
_includes/head.html Normal file
View File

@ -0,0 +1,34 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} | {% endif %}Go Ethereum</title>
<!-- debug root:{% include link.html url="/debug-path" %} -->
<link rel="icon" type="image/png" href="{% include link.html url=site.favicon %}" />
{% if layout.common-css %}
{% for css in layout.common-css %}
<link rel="stylesheet" href="{% include link.html url=css %}" />
{% endfor %}
{% endif %}
{% if page.css %}
{% for css in page.css %}
<link rel="stylesheet" href="{% include link.html url=css %}" />
{% endfor %}
{% endif %}
{% if layout.common-js %}
{% for js in layout.common-js %}
<script src="{% include link.html url=js %}"></script>
{% endfor %}
{% endif %}
{% if page.js %}
{% for js in page.js %}
<script src="{% include link.html url=js %}"></script>
{% endfor %}
{% endif %}
</head>

2
_includes/link.html Normal file
View File

@ -0,0 +1,2 @@
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ site.default_root }}{% endif %}{% endcapture %}
{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }}

1
_includes/title.html Normal file
View File

@ -0,0 +1 @@
{{ include.doc.title | remove_first: include.coll.label | remove_first: "/ " }}