mirror of https://github.com/istio/istio.io.git
65 lines
2.0 KiB
HTML
65 lines
2.0 KiB
HTML
---
|
|
layout: default
|
|
---
|
|
{% include home.html %}
|
|
|
|
<div class="container-fluid blog">
|
|
<div class="row row-offcanvas row-offcanvas-left">
|
|
<div class="col-6 col-md-3 col-xl-2 sidebar-offcanvas">
|
|
{% include sidebar.html docs=site.blog bloghack=true %}
|
|
</div>
|
|
|
|
{% assign needTOC = true %}
|
|
{% if page.toc == false %}
|
|
{% assign needTOC = false %}
|
|
{% else %}
|
|
{% include toc.html html=content sanitize=true h_min=2 h_max=4 %}
|
|
{% if emptyTOC %}
|
|
{% assign needTOC = false %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if needTOC %}
|
|
<div class="col-12 col-md-9 col-lg-7 col-xl-8">
|
|
{% else %}
|
|
<div class="col-12 col-md-9 col-xl-10">
|
|
{% endif %}
|
|
<p class="d-md-none">
|
|
<label class="sidebar-toggler" data-toggle="offcanvas">
|
|
<i class="fa fa-chevron-right"></i>
|
|
</label>
|
|
</p>
|
|
|
|
<main role="main">
|
|
<h1>{{page.title}}</h1>
|
|
|
|
{% if page.subtitle != nil %}
|
|
<p class="subtitle">{{page.subtitle}}</p>
|
|
{% endif %}
|
|
|
|
{% if page.attribution != nil or page.publish_date != nil %}
|
|
<p class="byline">
|
|
{% if page.attribution != nil %}
|
|
By <span class="attribution">{{page.attribution}}</span> /
|
|
{% endif %}
|
|
<span class="publish_date">{{page.publish_date}}</span>
|
|
</p>
|
|
{% endif %}
|
|
|
|
{{ content}}
|
|
</main>
|
|
</div>
|
|
|
|
{% if needTOC %}
|
|
<div class="col-12 col-md-2 d-none d-lg-block">
|
|
<nav class="toc">
|
|
<div class="spacer"></div>
|
|
<div class="directory" role="directory">
|
|
{{ toc }}
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|