mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Explore how to loop over collections
This commit is contained in:
parent
b849a22374
commit
c19f9db91c
2 changed files with 16 additions and 1 deletions
|
|
@ -12,4 +12,11 @@ defaults:
|
||||||
scope:
|
scope:
|
||||||
path: docs
|
path: docs
|
||||||
values:
|
values:
|
||||||
layout: sidebar
|
layout: sidebar
|
||||||
|
|
||||||
|
collections_dir: docs
|
||||||
|
collections:
|
||||||
|
Mobile:
|
||||||
|
output: true
|
||||||
|
caption: Mobile-related
|
||||||
|
sidebar: true
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
{% for coll in site.collections %}
|
||||||
|
{% if coll.sidebar %}
|
||||||
|
<h2>{{ coll.caption }}</h2>
|
||||||
|
{% for page in coll.docs %}
|
||||||
|
<h3>{{ page.title | remove_first: coll.label | remove_first: '/ '}}</h3>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
<div class="container" style="padding-top: 24px;">
|
<div class="container" style="padding-top: 24px;">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3" id="toc" style="padding-top: 16px;">
|
<div class="col-md-3" id="toc" style="padding-top: 16px;">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue