Use default_root for pages, normals defaults doesn't work for collections
This commit is contained in:
parent
585369608d
commit
e4490becd2
3
Gemfile
3
Gemfile
|
@ -28,3 +28,6 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
|||
# Performance-booster for watching directories on Windows
|
||||
gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
||||
|
||||
group :development, :test do
|
||||
gem "pry"
|
||||
end
|
22
_config.yml
22
_config.yml
|
@ -2,34 +2,26 @@ repository: ethereum/go-ethereum
|
|||
|
||||
theme: minima
|
||||
|
||||
exclude:
|
||||
- Gemfile
|
||||
- Gemfile.lock
|
||||
- .gitignore
|
||||
keep_files:
|
||||
- static
|
||||
|
||||
favicon: /static/images/favicon.png
|
||||
|
||||
defaults:
|
||||
-
|
||||
scope:
|
||||
- scope:
|
||||
path: ""
|
||||
values:
|
||||
layout: sidebar
|
||||
-
|
||||
scope:
|
||||
- scope:
|
||||
path: "*"
|
||||
values:
|
||||
root: "."
|
||||
-
|
||||
scope:
|
||||
- scope:
|
||||
path: "*/*"
|
||||
values:
|
||||
root: ".."
|
||||
-
|
||||
scope:
|
||||
path: "*/*/*"
|
||||
values:
|
||||
root: "../.."
|
||||
|
||||
default_root: ".."
|
||||
|
||||
collections_dir: docs
|
||||
collections:
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
<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 %}"" />
|
||||
<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 %}"" />
|
||||
<link rel="stylesheet" href="{% include link.html url=css %}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
{{ include.url | remove: ".html" | prepend: page.root | replace: '//', '/' }}
|
||||
{% capture root %}{{ page.root or site.default_root }}{% endcapture %}
|
||||
{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }}
|
|
@ -31,7 +31,6 @@ layout: default
|
|||
{% if page.title %}
|
||||
<h1 class="featurette-heading">{% include title.html doc=page coll=page.collection %}</h1>
|
||||
{% endif %}
|
||||
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue