-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlanding_page.html
More file actions
31 lines (26 loc) · 1.03 KB
/
landing_page.html
File metadata and controls
31 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
layout: default
---
<div class="post-header">
<h1 class="post-title-main">{{ page.title }}</h1>
</div>
<div class="post-content">
{% unless page.toc == false %}
{% include toc.html %}
{% endunless %}
{{content}}
{% comment %}If URLs in sidebar include index.html, but page metadata does not, add index.html.{% endcomment %}
{% capture indexURL %}{{ page.url }}index.html{% endcapture %}
<strong>Table of Contents</strong>
{% for entry in site.data.sidebars[page.sidebar].entries[0].folders %}
{% if entry.url == page.url or entry.url == indexURL %}
<ul>
{% for item in entry.folderitems %}
{% if item.type == subnavi %}
<li><a href="{{ item.url }}">{{ item.title }}</a>{% if item.deprecated %}<span class="apideprecated-inline">deprecated</span>{% elsif item.preview %}<span class="apipreview-inline">preview</span>{% endif %}</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</div>