docs: variables table as include
Co-Authored-By: Ashwin Maroli <ashmaroli@users.noreply.github.com>
This commit is contained in:
parent
29ba846f9b
commit
9ff6a24a06
|
|
@ -10,66 +10,15 @@ The following is a reference of the available data.
|
||||||
|
|
||||||
## Global Variables
|
## Global Variables
|
||||||
|
|
||||||
<div class="mobile-side-scroller">
|
{% include docs_variables_table.html scope=site.data.jekyll_variables.global %}
|
||||||
<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>
|
|
||||||
|
|
||||||
## Site Variables
|
## Site Variables
|
||||||
|
|
||||||
<div class="mobile-side-scroller">
|
{% include docs_variables_table.html scope=site.data.jekyll_variables.site %}
|
||||||
<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>
|
|
||||||
|
|
||||||
## Page Variables
|
## Page Variables
|
||||||
|
|
||||||
<div class="mobile-side-scroller">
|
{% include docs_variables_table.html scope=site.data.jekyll_variables.page %}
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<h5>ProTip™: Use Custom Front Matter</h5>
|
<h5>ProTip™: Use Custom Front Matter</h5>
|
||||||
|
|
@ -87,24 +36,7 @@ The following is a reference of the available data.
|
||||||
|
|
||||||
## Paginator
|
## Paginator
|
||||||
|
|
||||||
<div class="mobile-side-scroller">
|
{% include docs_variables_table.html scope=site.data.jekyll_variables.paginator %}
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="note info">
|
<div class="note info">
|
||||||
<h5>Paginator variable availability</h5>
|
<h5>Paginator variable availability</h5>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue