docs: variables table as include

Co-Authored-By: Ashwin Maroli <ashmaroli@users.noreply.github.com>
This commit is contained in:
Frank Taillandier 2018-10-24 17:23:00 +02:00
parent 29ba846f9b
commit 9ff6a24a06
No known key found for this signature in database
GPG Key ID: E73258E3F50AEB7E
2 changed files with 22 additions and 72 deletions

View File

@ -10,66 +10,15 @@ The following is a reference of the available data.
## Global Variables
<div class="mobile-side-scroller">
<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for var in site.data.jekyll_variables.global %}
<tr>
<td><p><code>{{ var.name }}</code></p></td>
<td><p>{{- var.description -}}</p></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include docs_variables_table.html scope=site.data.jekyll_variables.global %}
## Site Variables
<div class="mobile-side-scroller">
<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for var in site.data.jekyll_variables.site %}
<tr>
<td><p><code>{{ var.name }}</code></p></td>
<td><p>{{- var.description -}}</p></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include docs_variables_table.html scope=site.data.jekyll_variables.site %}
## Page Variables
<div class="mobile-side-scroller">
<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for var in site.data.jekyll_variables.page %}
<tr>
<td><p><code>{{ var.name }}</code></p></td>
<td><p>{{- var.description -}}</p></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include docs_variables_table.html scope=site.data.jekyll_variables.page %}
<div class="note">
<h5>ProTip™: Use Custom Front Matter</h5>
@ -87,24 +36,7 @@ The following is a reference of the available data.
## Paginator
<div class="mobile-side-scroller">
<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for var in site.data.jekyll_variables.paginator %}
<tr>
<td><p><code>{{ var.name }}</code></p></td>
<td><p>{{- var.description -}}</p></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include docs_variables_table.html scope=site.data.jekyll_variables.paginator %}
<div class="note info">
<h5>Paginator variable availability</h5>

View File

@ -0,0 +1,18 @@
<div class="mobile-side-scroller">
<table>
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for var in include.scope %}
<tr>
<td><p><code>{{ var.name }}</code></p></td>
<td><p>{{- var.description -}}</p></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>