Docs page: fix broken FAQ placement

This commit is contained in:
mDuo13
2021-06-28 19:13:27 -07:00
parent 600eefc7b5
commit 180a2e982f
2 changed files with 14 additions and 12 deletions

View File

@@ -323,7 +323,7 @@ pages:
- run-rippled-as-a-validator.html
- intro-to-consensus.html
# Questions
- technical-faq.html
- faq.html
top_nav_hero_image: assets/img/icons/docs.svg
popular_pages: #TODO: find a way so this isn't a partial duplicate of top_nav_shortcuts?
- send-xrp.html
@@ -362,15 +362,6 @@ pages:
targets:
- ja
- name: FAQ
html: faq.html
template: page-faq.html.jinja
parent: docs.html
sidebar: disabled
targets:
- en
- ja
# Concepts ---------------------------------------------------------------------
- name: Concepts
@@ -3717,6 +3708,17 @@ pages:
- en
- ja
# FAQ is a special case directly under "Docs" ----------------------------------
- name: FAQ
html: faq.html
template: page-faq.html.jinja
parent: docs.html
sidebar: disabled
targets:
- en
- ja
# "Community" tab --------------------------------------------------------------
- name: Community
html: contribute.html

View File

@@ -61,7 +61,7 @@
<section class="container-fluid mb-50" id="doc-types">
<h2 class="h4">{% trans %}Article Types{% endtrans %}</h2>
{% set curated_cards = currentpage.children|selectattr("html","ne","by-label.html")|map(attribute="html")|list %}
{% set curated_cards = currentpage.children|selectattr("html","ne","by-label.html")|selectattr("html","ne","faq.html")|map(attribute="html")|list %}
{% set mobile_cols = 1 %}
{% include 'component-curated-cards.html.jinja' %}
</section><!--/#doc-types-->
@@ -96,7 +96,7 @@
<section class="container-fluid mb-50 doc-index">
<h2 id="full-doc-index" class="h4">{% trans %}Full Documentation Index{% endtrans %}</h2>
<div class="row">
{% for page in currentpage.children if page.html != "by-label.html" %}
{% for page in currentpage.children if page.html not in ("by-label.html", "faq.html") %}
{% set parent_html = page.html %}
{% set depth = 6 %}
<div class="col-md-6 mt-20">