1
0
mirror of synced 2025-12-25 02:17:36 -05:00

add new include and layout files that are feature flagged

This commit is contained in:
Sarah Schneider
2021-04-15 14:35:17 -04:00
parent 86fd80e1b2
commit 0a38c29339
8 changed files with 246 additions and 0 deletions

58
layouts/generic-toc.html Normal file
View File

@@ -0,0 +1,58 @@
<!doctype html>
<html lang="{{currentLanguage}}">
{% include head %}
<body class="d-lg-flex">
{% include sidebar %}
<main class="width-full">
{% include header %}
{% include deprecation-banner %}
<div class="container-xl px-3 px-md-6 my-4 my-lg-4 d-xl-flex">
<article class="markdown-body width-full">
<div class="d-lg-flex flex-justify-between">
<div class="d-block d-lg-none">{% include article-version-switcher %}</div>
<div class="d-flex flex-items-center breadcrumbs-wrapper">
{% include breadcrumbs %}
</div>
<div class="d-none d-lg-block">{% include article-version-switcher %}</div>
</div>
<div class="mt-2 article-grid-container">
<div class="article-grid-head">
<div class="d-flex flex-items-baseline flex-justify-between mt-3">
<h1 class="border-bottom-0">{{ page.title }}</h1>
<div class="d-none d-lg-block ml-2">
<button class="btn-link link-gray js-print tooltipped tooltipped-n" aria-label="Print this article">
{% include printer-icon %}
</button>
</div>
</div>
{% if page.intro %}
<div class="lead-mktg">{{ page.intro }}</div>
{% endif %}
{% if page.product %}
<div class="product-callout border rounded-1 mb-4 p-3 border-purple bg-purple-light">
{{ page.product }}
</div>
{% endif %}
</div>
<div id="article-contents" class="article-grid-body">
{% if featuredLinks.gettingStarted and featuredLinks.popular %}
{% include featured-links %}
{% endif %}
{% include generic-toc %}
</div>
</div>
</article>
</div>
{% include support-section %}
{% include small-footer %}
{% include scroll-button %}
</main>
</body>
</html>

View File

@@ -138,11 +138,22 @@
{% endif %}
<div class="container-xl px-3 px-md-6 mt-6">
{% if FEATURE_NEW_SITETREE %}
{% if page.documentType == "category" %}
{% include category-articles-list %}
{% endif %}
{% if page.documentType == "product" %}
{% include product-articles-list %}
{% endif %}
{% endif %}
{% unless FEATURE_NEW_SITETREE %}
{% if currentCategory %}
{% include all-articles-category %}
{% else %}
{% include all-articles-product %}
{% endif %}
{% endunless %}
</div>
{% include support-section %}