mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Details at the [ZEPPELIN-279](https://issues.apache.org/jira/browse/ZEPPELIN-279) Author: Alexander Bezzubov <bzz@apache.org> Closes #282 from bzz/ZEPPELIN-279-move-docs-to-master and squashes the following commits:16d2cd0[Alexander Bezzubov] ZEPPELIN-279: updating refs to new /docs locationa051a35[Alexander Bezzubov] ZEPPELIN-279: moving website gh-pages -> master:/docs
39 lines
No EOL
1.3 KiB
Text
39 lines
No EOL
1.3 KiB
Text
{% comment %}<!--
|
|
The pages_list include is a listing helper.
|
|
Usage:
|
|
1) assign the 'pages_list' variable to a valid array of pages or posts.
|
|
2) include JB/pages_list
|
|
example:
|
|
<ul>
|
|
{% assign pages_list = site.pages %}
|
|
{% include JB/pages_list %}
|
|
</ul>
|
|
|
|
Grouping: (optional):
|
|
assign the 'group' variable to constrain the list to only pages/posts
|
|
in the given group. Note you must define the group manually in the page/post
|
|
meta-data to use this feature.
|
|
Grouping is mainly helpful for non-post pages.
|
|
If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
|
|
i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)
|
|
|
|
This helper can be seen in use at: ../_layouts/default.html
|
|
-->{% endcomment %}
|
|
|
|
{% if site.JB.pages_list.provider == "custom" %}
|
|
{% include custom/pages_list %}
|
|
{% else %}
|
|
{% for node in pages_list %}
|
|
{% if node.title != null %}
|
|
{% if group == null or group == node.group %}
|
|
{% if page.url == node.url %}
|
|
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
|
|
{% else %}
|
|
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% assign pages_list = nil %}
|
|
{% assign group = nil %} |