Deploying to gh-pages from @ harttle/liquidjs@371da3da74 🚀

This commit is contained in:
harttle
2022-01-19 18:07:26 +00:00
parent 17821f1d05
commit 5a7b33a899
541 changed files with 2269 additions and 2261 deletions
+1 -1
View File
@@ -107,7 +107,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="use-in-expressjs.html" class="article-footer-prev" title="Express.js 中使用"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="register-filters-tags.html" class="article-footer-next" title="注册标签/过滤器"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -508,7 +508,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:40:40.192Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:06:51.670Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="migrate-to-9.html" class="article-footer-prev" title="迁移到 LiquidJS 9"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="differences.html" class="article-footer-next" title="与 Shopify/liquid 的不同"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -106,7 +106,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="differences.html" class="article-footer-prev" title="与 Shopify/liquid 的不同"><i class="icon-chevron-left"></i><span>上一页</span></a>
</footer>
</div>
+1 -1
View File
@@ -104,7 +104,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="changelog.html" class="article-footer-prev" title="更新日志"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="contribution-guidelines.html" class="article-footer-next" title="贡献指南"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -120,7 +120,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="setup.html" class="article-footer-next" title="安装"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -115,7 +115,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="truthy-and-falsy.html" class="article-footer-prev" title="真和假"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="changelog.html" class="article-footer-next" title="更新日志"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -105,7 +105,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="plugins.html" class="article-footer-prev" title="插件"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="truthy-and-falsy.html" class="article-footer-next" title="真和假"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+5 -3
View File
@@ -115,14 +115,16 @@
<blockquote class="note warn"><strong class="note-title">常见陷阱</strong><p>LiquidJS 把这个选项默认值设为 <code>true</code> 以兼容于 shopify/liquid,但如果你在使用 <a href="https://github.com/11ty/eleventy" rel="external nofollow noreferrer" target="_blank">eleventy</a> 它会设置默认值 <code>false</code> (参考 <a href="https://www.11ty.dev/docs/languages/liquid/#quoted-include-paths" rel="external nofollow noreferrer" target="_blank">Quoted Include Paths</a>)以兼容于 Jekyll。</p>
</blockquote>
<h2 id="Jekyll-include" class="article-heading"><a href="#Jekyll-include" class="headerlink" title="Jekyll include"></a>Jekyll include<a class="article-anchor" href="#Jekyll-include" aria-hidden="true"></a></h2><p><a href="../api/interfaces/liquid_options_.liquidoptions.html#Optional-jekyllInclude">jekyllInclude</a> 用来启用 Jekyll-like include 语法。默认为 <code>false</code>,当设置为 <code>true</code> 时:</p>
<h2 id="Jekyll-include" class="article-heading"><a href="#Jekyll-include" class="headerlink" title="Jekyll include"></a>Jekyll include<a class="article-anchor" href="#Jekyll-include" aria-hidden="true"></a></h2><p class="since">v9.33.0</p>
<p><a href="../api/interfaces/liquid_options_.liquidoptions.html#Optional-jekyllInclude">jekyllInclude</a> 用来启用 Jekyll-like include 语法。默认为 <code>false</code>,当设置为 <code>true</code> 时:</p>
<ul>
<li>默认启用静态文件名:<code>dynamicPartials</code> 的默认值变为 <code>false</code>(而非 <code>true</code>)。但你也可以把它设置回 <code>true</code></li>
<li>参数的键和值之间由 <code>=</code> 分隔(本来是 <code>:</code>)。</li>
<li>参数放到了 <code>include</code> 变量下,而非当前作用域。</li>
</ul>
<p>例如下面的模板中,<code>name.html</code> 没有带引号,<code>header</code><code>&quot;HEADER&quot;</code><code>=</code> 分隔,<code>header</code> 参数通过 <code>include.header</code> 来引用。更多详情请参考 <a href="../tags/include.html">include</a></p>
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">// entry template</span><br><span class="line">&#123;% include name.html header=&quot;HEADER&quot; content=&quot;CONTENT&quot; %&#125;</span><br><span class="line"></span><br><span class="line">// name.html</span><br><span class="line">&lt;header&gt;&#123;&#123;include.header&#125;&#125;&lt;/header&gt;</span><br><span class="line">&#123;&#123;include.content&#125;&#125;</span><br></pre></td></tr></table></figure>
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">// entry template</span><br><span class="line">&#123;% include article.html header=&quot;HEADER&quot; content=&quot;CONTENT&quot; %&#125;</span><br><span class="line"></span><br><span class="line">// article.html</span><br><span class="line">&lt;article&gt;</span><br><span class="line"> &lt;header&gt;&#123;&#123;include.header&#125;&#125;&lt;/header&gt;</span><br><span class="line"> &#123;&#123;include.content&#125;&#125;</span><br><span class="line">&lt;/article&gt;</span><br></pre></td></tr></table></figure>
<h2 id="extname" class="article-heading"><a href="#extname" class="headerlink" title="extname"></a>extname<a class="article-anchor" href="#extname" aria-hidden="true"></a></h2><p><strong>extname</strong> 定义了默认的文件后缀,当传入文件名不包含后缀时自动追加。默认值是 <code>&#39;&#39;</code> 也就是说默认是禁用的。如果设置为 <code>.liquid</code></p>
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">&#123;% render &quot;foo&quot; %&#125; 没有后缀,添加 &quot;.liquid&quot; 并加载 foo.liquid</span><br><span class="line">&#123;% render &quot;foo.html&quot; %&#125; 已经有后缀了,直接加载 foo.html</span><br></pre></td></tr></table></figure>
@@ -149,7 +151,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="setup.html" class="article-footer-prev" title="安装"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="render-file.html" class="article-footer-next" title="文件渲染"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -113,7 +113,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="render-file.html" class="article-footer-prev" title="文件渲染"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="use-in-expressjs.html" class="article-footer-next" title="Express.js 中使用"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -110,7 +110,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="whitespace-control.html" class="article-footer-prev" title="换行和缩进"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="operators.html" class="article-footer-next" title="运算符"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -109,7 +109,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="caching.html" class="article-footer-prev" title="缓存"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="whitespace-control.html" class="article-footer-next" title="换行和缩进"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -134,7 +134,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="options.html" class="article-footer-prev" title="选项"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="partials-and-layouts.html" class="article-footer-next" title="引用/继承"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -125,7 +125,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="intro-to-liquid.html" class="article-footer-prev" title="Liquid 简介"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="options.html" class="article-footer-next" title="选项"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -225,7 +225,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="operators.html" class="article-footer-prev" title="运算符"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="migrate-to-9.html" class="article-footer-next" title="迁移到 LiquidJS 9"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -113,7 +113,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="partials-and-layouts.html" class="article-footer-prev" title="引用/继承"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="caching.html" class="article-footer-next" title="缓存"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -117,7 +117,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2022-01-19T17:39:45.284Z" itemprop="dateModified">上次更新:2022-01-19</time>
<time class="article-footer-updated" datetime="2022-01-19T18:05:53.681Z" itemprop="dateModified">上次更新:2022-01-19</time>
<a href="register-filters-tags.html" class="article-footer-prev" title="注册标签/过滤器"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="plugins.html" class="article-footer-next" title="插件"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>