|
1 | 1 | <!doctype html>
|
2 | 2 | {% include _browser_magic.html %}
|
3 | 3 | <head>
|
4 |
| -{% assign custom_title = page.name | append: " (" | append: page.btcversion | append: " RPC)" %} |
| 4 | +{% if page.name != "index" and page.name != "rpcindex" %} |
| 5 | + {% assign custom_title = page.name | append: " (" | append: page.btcversion | append: " RPC)" %} |
| 6 | +{% else %} |
| 7 | + {% if page.btcversion != "index" %} |
| 8 | + {% assign custom_title = "Bitcoin Core " | append: page.btcversion | append: " RPC" %} |
| 9 | + {% else %} |
| 10 | + {% assign custom_title = "Bitcoin Core RPC" %} |
| 11 | + {% endif %} |
| 12 | +{% endif %} |
5 | 13 | {% include _head.html %}
|
6 | 14 | </head>
|
7 | 15 |
|
|
15 | 23 | <div class="article-author-side">
|
16 | 24 | <div>
|
17 | 25 | <p>
|
18 |
| - Documentation exported from <a href="https://github.com/bitcoin/bitcoin/tree/v{{page.btcversion}}">Bitcoin Core {{page.btcversion}}</a> |
| 26 | + {% if page.btcversion != "index" %} |
| 27 | + Documentation exported from <a href="https://github.com/bitcoin/bitcoin/tree/v{{page.btcversion}}">Bitcoin Core {{page.btcversion}}</a> |
| 28 | + {% endif %} |
19 | 29 | </p>
|
20 | 30 | </div>
|
21 | 31 | </div>
|
22 | 32 | <article class="page">
|
23 | 33 | <h1>{{ custom_title }}</h1>
|
24 | 34 | <div class="article-wrap">
|
25 |
| - {% assign groups = site.doc | where:"btcversion", page.btcversion | group_by:"btcgroup" | sort: "name" %} |
26 |
| - <section class="toc"> |
27 |
| - {% for group in groups %} |
28 |
| - <header> |
29 |
| - <h3 class="toc-header"> |
30 |
| - <i class="fa fa-book"></i> |
31 |
| - {{ group.name }} |
32 |
| - </h3> |
33 |
| - <div class="toc-drawer js-hidden"> |
34 |
| - <ul> |
35 |
| - {% for article in group.items %} |
36 |
| - <li><a href="{{article.url}}">{{article.name}}</a></li> |
37 |
| - {% endfor %} |
38 |
| - </ul> |
39 |
| - </div> |
40 |
| - </header> |
41 |
| - {% endfor %} |
42 |
| - </section> |
| 35 | + {% if page.btcversion != "index" %} |
| 36 | + {% assign groups = site.doc | where:"btcversion", page.btcversion | group_by:"btcgroup" | sort: "name" %} |
| 37 | + <section class="toc"> |
| 38 | + {% for group in groups %} |
| 39 | + {% if group.name != "index" %} |
| 40 | + <header> |
| 41 | + <h3 class="toc-header"> |
| 42 | + <i class="fa fa-book"></i> |
| 43 | + {{ group.name }} |
| 44 | + </h3> |
| 45 | + <div class="toc-drawer js-hidden"> |
| 46 | + <ul> |
| 47 | + {% for article in group.items %} |
| 48 | + <li><a href="{{article.url}}">{{article.name}}</a></li> |
| 49 | + {% endfor %} |
| 50 | + </ul> |
| 51 | + </div> |
| 52 | + </header> |
| 53 | + {% endif %} |
| 54 | + {% endfor %} |
| 55 | + </section> |
| 56 | + {% endif %} |
43 | 57 |
|
44 | 58 | <!-- { % include _istranslated.html % } -->
|
| 59 | + |
| 60 | + {% if page.name != "index" and page.name != "rpcindex" %} |
45 | 61 | <span class="doc">
|
46 | 62 | {% highlight text %}{{ content }}{% endhighlight %}
|
47 | 63 | </span>
|
| 64 | + {% else %} |
| 65 | + {% if page.btcversion != "index" %} |
| 66 | + Select a command group in the menu. |
| 67 | + {% else %} |
| 68 | + Following docs are available: |
| 69 | + {% assign groups = site.doc | group_by:"btcversion" | sort: "name" %} |
| 70 | + <ul> |
| 71 | + {% for group in groups %} |
| 72 | + {% if group.name != "index" %} |
| 73 | + {% for article in group.items %} |
| 74 | + {% if article.name == "index" %} |
| 75 | + <li><a href="{{article.url}}">{{group.name}}</a></li> |
| 76 | + {% endif %} |
| 77 | + {% endfor %} |
| 78 | + {% endif %} |
| 79 | + {% endfor %} |
| 80 | + </ul> |
| 81 | + {% endif %} |
| 82 | + {% endif %} |
48 | 83 | {% if page.share != false %}
|
49 | 84 | <hr />
|
50 | 85 | {% include _social-share.html %}
|
|
0 commit comments