parent
05cbe06c26
commit
0aa29046a7
|
@ -23,8 +23,8 @@ Liquid::Template.register_filter(Jekyll::AssetFilter)
|
|||
<h5>ProTip™: Access the site object using Liquid</h5>
|
||||
<p>
|
||||
Jekyll lets you access the <code>site</code> object through the
|
||||
<code>context.registers</code> feature of Liquid at <code>context.registers[:site]</code>. For example, you can
|
||||
<code>@context.registers</code> feature of Liquid at <code>@context.registers[:site]</code>. For example, you can
|
||||
access the global configuration file <code>_config.yml</code> using
|
||||
<code>context.registers[:site].config</code>.
|
||||
<code>@context.registers[:site].config</code>.
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue