add new include and layout files that are feature flagged
This commit is contained in:
58
layouts/generic-toc.html
Normal file
58
layouts/generic-toc.html
Normal 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>
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user