links use baseurl

This commit is contained in:
Adam Schmideg 2019-01-22 11:46:45 +01:00
parent ce988f6b04
commit 81ef2c0bcf
7 changed files with 49 additions and 29 deletions

View file

@ -6,6 +6,7 @@ exclude:
- .gitignore
google_analytics: UA-131485733-1
favicon: /static/images/favicon.png
defaults:
-

3
_data/navbar.yml Normal file
View file

@ -0,0 +1,3 @@
Install: /docs/Installing-Geth
Downloads: /downloads
Documentation: /docs

View file

@ -19,28 +19,29 @@
<!-- End Google Analytics -->
{% endif %}
<link rel="icon" type="image/png" href="../static/images/favicon.png" />
<link rel="icon" type="image/png" href="{{ site.favicon | prepend: site.baseurl | replace: '//', '/'}}" />
{% if layout.common-css %}
{% for css in layout.common-css %}
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
{% endfor %}
{% endif %}
<link href="../static/styles/bootstrap.min.css" rel="stylesheet" />
<link href="../static/styles/flatly.min.css" rel="stylesheet" />
<link href="../static/styles/font-awesome.min.css" rel="stylesheet" />
<link href="../static/styles/custom/common.css" rel="stylesheet" />
{% if page.css %}
{% for css in page.css %}
<link href="{{ css }}" rel="stylesheet" />
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
{% endfor %}
{% endif %}
{% if layout.common-js %}
{% for js in layout.common-js %}
<script src="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script>
{% endfor %}
{% endif %}
<script src="../static/scripts/jquery.min.js"></script>
<script src="../static/scripts/bootstrap.min.js"></script>
<script src="../static/scripts/moment.min.js"></script>
<script src="../static/scripts/marked.min.js"></script>
<script src="../static/scripts/emojify.min.js"></script>
{% if page.js %}
{% for js in page.js %}
<script src="{{ js }}"></script>
<script src="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script>
{% endfor %}
{% endif %}
<script src="../static/scripts/custom/polyfills.js"></script>
</head>

View file

@ -1,3 +1,17 @@
---
common-css:
- /static/styles/bootstrap.min.css
- /static/styles/flatly.min.css
- /static/styles/font-awesome.min.css
- /static/styles/custom/common.css
common-js:
- /static/scripts/jquery.min.js
- /static/scripts/bootstrap.min.js
- /static/scripts/moment.min.js
- /static/scripts/marked.min.js
- /static/scripts/emojify.min.js
- /static/scripts/custom/polyfills.js
---
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
@ -12,14 +26,15 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Go Ethereum</a>
<a class="navbar-brand" href="{{ site.url }}">Go Ethereum</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/docs/Installing-Geth">Install</a></li>
<li><a href="/downloads">Downloads</a></li>
<li><a href="/docs">Documentation</a></li>
<!--<li><a href="/guide/">Guide</a></li>-->
{% for link in site.data.navbar %}
<li>
<a href="{{ link[1] | prepend: site.baseurl | replace: '//', '/' }}">{{ link[0] }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>

View file

@ -9,7 +9,7 @@ layout: default
<a class="list-group-item active">{{ group[0] }}</a>
{% for link in group[1] %}
<a class="list-group-item"
href="{{ link.first[1] }}">{{ link.first[0] }}</a>
href="{{ link.first[1] | prepend: site.baseurl | replace: '//', '/'}}">{{ link.first[0] }}</a>
{% endfor %}
</div>
{% endfor %}

View file

@ -5,13 +5,13 @@ This is the documentation for the official Ethereum golang implementation. For g
Main entry points:
* [Installation Instructions](/docs/Building-Ethereum)
* [Developer/Management API](/docs/Management-APIs)
* [Managing Accounts](/docs/Managing-your-accounts)
* [Command Line Options](/docs/Command-Line-Options)
* [JavaScript Console](/docs/JavaScript-Console)
* [Private Network](/docs/Private-network)
* [Developers' Guide](/docs/Developers-Guide)
* [Whisper v6](/docs/Whisper)
* [Installation Instructions](Building-Ethereum)
* [Developer/Management API](Management-APIs)
* [Managing Accounts](Managing-your-accounts)
* [Command Line Options](Command-Line-Options)
* [JavaScript Console](JavaScript-Console)
* [Private Network](Private-network)
* [Developers' Guide](Developers-Guide)
* [Whisper v6](Whisper)
Sidebar lists all pages.

View file

@ -1,9 +1,9 @@
---
layout: default
css:
- ../static/styles/custom/downloads.css
- /static/styles/custom/downloads.css
js:
- ../static/scripts/filesize.min.js
- /static/scripts/filesize.min.js
---
<div id="loader" class="modal fade" role="dialog" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">