Files
xrpl-dev-portal/tool/template-landing-docs.html
mDuo13 eb6142f270 Spacing and image fixes
- Move generic images to the folder for template assets
- Redo docs landing page
- Fix spacing issues on many pages
- Remove lots of defunct styles
2020-09-09 19:32:15 -07:00

61 lines
2.2 KiB
HTML

{% extends "template-base.html" %}
{% block mainclasses %}landing padded-landing page-docs-index{% endblock %}
{% block main %}
<section class="container-fluid card-grid card-grid-2x2">
<div class="section-hero card">
<h1 class="main-page-header">XRP Ledger Documentation</h1>
<p class="blurb">Dive into our documentation and start integrating with the XRP Ledger.</p>
<p class="blurb">Browse by category, or skip straight to the <a href="#full-doc-index">full documentation index</a>.</p>
</div>
{% set doc_types = [] %}
{% set flag_n = cycler(* range(1,99)) %}
{% for page in pages %}
{% if page.doc_type is defined and page.doc_type not in doc_types %}
{% set doc_type_top = pages|selectattr('doc_type', 'defined_and_equalto', page.doc_type)|first %}
<div class="card">
<div class="card-header">
<h3 class="card-title"><a href="{{doc_type_top.html}}">{{doc_type_top.name}}</a></h3>
</div><!--/.card-header-->
<div class="card-body">
{% if page.blurb is defined %}
<p class="blurb">{{page.blurb}}</p>
{% endif %}
{% set parent_page = doc_type_top %}
{% set depth = 1.5 %}
{% include 'template-page-children.html' %}
</div><!--/.card-body-->
<div class="card-footer">
<div class="readmore">
<a class="btn btn-outline-secondary" href="{{doc_type_top.html}}">View All {{doc_type_top.name}}</a>
</div>
</div><!--/.card-footer-->
</div><!--/.card-->
{% set _ = doc_types.append(page.doc_type) %}
{% endif %}
{% endfor %}
</section>
<section class="container-fluid doc-index">
<h2 id="full-doc-index">Full Documentation Index</h2>
<div class="row">
<div class="col-md-8">
{% set parent_page = currentpage %}
{% set depth = 5 %}
{% include 'template-page-children.html' %}
</div>
</div>
</section>
{% endblock %}
{% block endbody %}
<script type="application/javascript">
gtag('config', 'UA-157720658-3', {'content_group1': 'Hub Pages'});
</script>
{% endblock %}