forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-references.html.jinja
109 lines (101 loc) · 4.13 KB
/
page-references.html.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{% extends "base.html.jinja" %}
{% block mainclasses %}landing page-references{% endblock %}
{% block main %}
<section class="py-20 text-center">
<div class="col-xl-4 col-lg-6 mx-auto text-center">
<div class="d-flex flex-column-reverse">
<h1 class="mb-18">{% trans %}References and APIs{% endtrans %}</h1>
<h6 class="green-500 mb-3">{% trans %}Everything You Need to Know{% endtrans %}</h6>
</div>
</div>
</section>
<section class="container-new mb-30" id="refs-types">
<div class="row row-cols-1 row-cols-lg-3 card-deck">
{% for page in currentpage.children if not page.nav_omit and not page.html == "protocol-reference.html" %}
<div class="card">
<div class="card-body">
<h4 class="card-title h5">
<a href="{{page.html}}">
{% if page.top_nav_name is defined %}{{page.top_nav_name}}{% else %}{{page.name}}{% endif %}
</a>
</h4>
<p class="card-text">{{page.blurb}}</p>
{% if page.curated_anchors is defined %}
<div class="curated-links">
<ul class="nav flex-column">
{% for link in page.curated_anchors %}
<li class="nav-item"><a class="nav-link" href="{{page.html}}{{link.anchor}}">{{link.name}}</a></li>
{% endfor %}
</ul>
</div><!--/.curated-links-->
{% else %}
<ul class="nav flex-column">
{% for child in page.children if not child.nav_omit %}
<li class="nav-item"><a class="nav-link{% if '//' in child.html %} external-link{% endif %}" href="{{child.html}}">{{child.name}}</a></li>
{% endfor %}
</ul>
{% endif %}
</div><!--/.card-body-->
<div class="card-footer"> </div>
</div><!--/.card-->
{% endfor %}
</div><!--/.card-deck-->
</section>
<section class="container-new mb-30" id="xrpl-protocol">
{% set protocolref = pages|selectattr("html", "defined_and_equalto", "protocol-reference.html")|first %}
<div class="d-flex flex-column-reverse col-sm-8 p-0">
<h2 class="h4">{{protocolref.name}}</h2>
<h6 class="green-500 mb-3">{{protocolref.eyebrow_text}}</h6>
</div>
{% for row in protocolref.children|batch(4) %}
<div class="row row-cols-1 row-cols-lg-4 card-deck">
{% for page in row if not page.nav_omit %}
{% if page.children or page.curated_anchors %}
<div class="card">
<div class="card-body">
<h4 class="card-title h5">
<a href="{{page.html}}">
{% if page.top_nav_name is defined %}{{page.top_nav_name}}{% else %}{{page.name}}{% endif %}
</a>
</h4>
<p class="card-text">{{page.blurb}}</p>
{% if page.curated_anchors is defined %}
<div class="curated-links">
<ul class="nav flex-column">
{% for link in page.curated_anchors %}
<li class="nav-item"><a class="nav-link" href="{{page.html}}{{link.anchor}}">{{link.name}}</a></li>
{% endfor %}
</ul>
</div><!--/.curated-links-->
{% else %}
<ul class="nav flex-column">
{% for child in page.children if not child.nav_omit %}
<li class="nav-item"><a class="nav-link{% if '//' in child.html %} external-link{% endif %}" href="{{child.html}}">{{child.name}}</a></li>
{% endfor %}
</ul>
{% endif %}
</div><!--/.card-body-->
<div class="card-footer"> </div>
</div><!--/.card-->
{% else %}
<a class="card" href="{{page.html}}">
<div class="card-body">
<h4 class="card-title h5">
{% if page.top_nav_name is defined %}{{page.top_nav_name}}{% else %}{{page.name}}{% endif %}
</h4>
<p class="card-text">{{page.blurb}}</p>
</div>
<div class="card-footer"> </div>
</a>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div><!--/.card-deck-->
</section>
{% endblock %}
{% block endbody %}
<script type="application/javascript">
gtag('config', 'UA-157720658-3', {'content_group1': 'Hub Pages'});
</script>
{% endblock %}