mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-05 20:25:00 -05:00
side scrolling wrappers for remaining tables
This commit is contained in:
@@ -73,6 +73,7 @@ category using the `category_index.html` layout.
|
||||
|
||||
Generators are only required to implement one method:
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -91,6 +92,7 @@ Generators are only required to implement one method:
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
## Converters
|
||||
|
||||
@@ -130,6 +132,7 @@ end
|
||||
|
||||
Converters should implement at a minimum 3 methods:
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -165,6 +168,7 @@ run on the page.</p>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
In our example, UpcaseConverter-matches checks if our filename extension is `.upcase`, and will render using the converter if it is. It will call UpcaseConverter-convert to process the content - in our simple converter we’re simply capitalizing the entire content string. Finally, when it saves the page, it will do so with the `.html` extension.
|
||||
|
||||
@@ -194,6 +198,7 @@ Liquid::Template.register_tag('render_time', Jekyll::RenderTimeTag)
|
||||
|
||||
At a minimum, liquid tags must implement:
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -212,6 +217,7 @@ At a minimum, liquid tags must implement:
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
You must also register the custom tag with the Liquid template engine as follows:
|
||||
|
||||
@@ -256,6 +262,7 @@ Liquid::Template.register_filter(Jekyll::AssetFilter)
|
||||
|
||||
There are two flags to be aware of when writing a plugin:
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -285,6 +292,7 @@ values are: <code>:lowest</code>, <code>:low</code>, <code>:normal</code>, <code
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
To use one of the example plugins above as an illustration, here is how you’d specify these two flags:
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ A basic Jekyll site usually looks something like this:
|
||||
|
||||
An overview of what each of these does:
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -93,3 +94,4 @@ An overview of what each of these does:
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,7 @@ Jekyll uses the [Liquid](http://www.liquidmarkup.org/) templating language to pr
|
||||
|
||||
## Filters
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -136,6 +137,7 @@ Jekyll uses the [Liquid](http://www.liquidmarkup.org/) templating language to pr
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
## Tags
|
||||
|
||||
@@ -214,4 +216,3 @@ You can also use this tag to create a link to a post in Markdown as follows:
|
||||
{% highlight html %}
|
||||
[Name of Link]({{ "{% post_url 2010-07-21-name-of-post " }}%})
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
|
||||
## Global Variables
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -35,9 +36,11 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
## Site Variables
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -72,9 +75,11 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
## Page Variables
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -113,6 +118,7 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="note">
|
||||
<h5>ProTip™: Use custom front-matter</h5>
|
||||
@@ -121,6 +127,7 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
|
||||
## Paginator
|
||||
|
||||
<div class="mobile-side-scroller">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -159,6 +166,7 @@ Jekyll traverses your site looking for files to process. Any files with [YAML Fr
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="note info">
|
||||
<h5>Paginator variable availability</h5>
|
||||
|
||||
Reference in New Issue
Block a user