Deploying to gh-pages from @ harttle/liquidjs@3fb66465c6 🚀

This commit is contained in:
harttle
2023-02-22 15:58:10 +00:00
parent e1253240db
commit 861640a0c6
613 changed files with 3900 additions and 3845 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="register-filters-tags.html" class="article-footer-prev" title="注册标签/过滤器"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="parse-parameters.html" class="article-footer-next" title="参数解析"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -124,7 +124,7 @@ engine<span class="token punctuation">.</span><span class="token function">rende
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -110,7 +110,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -121,7 +121,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -126,7 +126,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -117,7 +117,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -107,7 +107,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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>
+2 -1
View File
@@ -151,6 +151,7 @@
<p>例如,空字符串在 JavaScript 中为假(<code>jsTruthy</code><code>true</code> 时),在 Shopify 真值表中为真。</p>
<h2 id="时间日期和时区" class="article-heading"><a href="#时间日期和时区" class="headerlink" title="时间日期和时区"></a>时间日期和时区<a class="article-anchor" href="#时间日期和时区" aria-hidden="true"></a></h2><p><strong>timezoneOffset</strong> 用来指定一个和你当地时区不同的时区,所有日期和时间输出时都转换到这个指定的时区。例如设置 <code>timezoneOffset: 0</code> 将会把所有日期按照 UTC/GMT 00:00 来输出。</p>
<p><strong>preserveTimezones</strong> 是一个布尔值,只影响时间戳字面量。当设置为 <code>true</code> 时,所有字面量的时间戳字符串会在输出时保持原状,即不论输入时采取怎样的时区,输出时仍然采用那一时区(和 Shopify Liquid 的行为一致)。注意这是一个解析器参数,渲染时传入的数据中的日期的输出不会受此参数影响。注意 <code>preserveTimezones</code><code>timezoneOffset</code> 的优先级更高。</p>
<p><strong>dateFormat</strong> 用于指定输出日期的默认格式. <code>%A, %B %-e, %Y at %-l:%M %P %z</code> 如果未指定,将使用. 例如,设置 <code>dateFormat: %Y-%m-%dT%H:%M:%S:%LZ</code> 以输出 [JavaSrcipt Date.toJson()][<a target="_blank" rel="noopener external nofollow noreferrer" href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON]">https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON]</a> 格式.</p>
<h2 id="换行和缩进" class="article-heading"><a href="#换行和缩进" class="headerlink" title="换行和缩进"></a>换行和缩进<a class="article-anchor" href="#换行和缩进" aria-hidden="true"></a></h2><p><strong>greedy</strong>, <strong>trimOutputLeft</strong>, <strong>trimOutputRight</strong>, <strong>trimTagLeft</strong>, <strong>trimTagRight</strong> 选项用来移除 Liquid 语法周围的换行和缩进,详情请参考 <a href="./whitespace-control.html">Whitespace Control</a></p>
<h2 id="自定义分隔符" class="article-heading"><a href="#自定义分隔符" class="headerlink" title="自定义分隔符"></a>自定义分隔符<a class="article-anchor" href="#自定义分隔符" aria-hidden="true"></a></h2><p><strong>outputDelimiterLeft</strong>, <strong>outputDelimiterRight</strong>, <strong>tagDelimiterLeft</strong>, <strong>tagDelimiterRight</strong> 用来自定义 LiquidJS 中 <a href="./intro-to-liquid.html">标签和过滤器</a> 的分隔符。例如设置了 <code>outputDelimiterLeft: &lt;%=, outputDelimiterRight: %&gt;</code> 后我们可以避免跟其他模板引擎冲突:</p>
<pre class="line-numbers language-ejs" data-language="ejs"><code class="language-ejs"><span class="token ejs language-ejs"><span class="token delimiter punctuation">&lt;%=</span><span class="token language-javascript"> username <span class="token operator">|</span> append<span class="token operator">:</span> <span class="token string">", welcome to LiquidJS!"</span> </span><span class="token delimiter punctuation">%></span></span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
@@ -165,7 +166,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -163,7 +163,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="access-scope-in-filters.html" class="article-footer-prev" title="过滤器里访问上下文"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="render-tag-content.html" class="article-footer-next" title="渲染标签内容"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -133,7 +133,7 @@ Footer<span aria-hidden="true" class="line-numbers-rows"><span></span><span></sp
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -122,7 +122,7 @@ engine<span class="token punctuation">.</span><span class="token function">parse
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -167,7 +167,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="caching.html" class="article-footer-prev" title="缓存"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="access-scope-in-filters.html" class="article-footer-next" title="过滤器里访问上下文"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -167,7 +167,7 @@ engine<span class="token punctuation">.</span><span class="token function">rende
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -189,7 +189,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="parse-parameters.html" class="article-footer-prev" title="参数解析"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="sync-and-async.html" class="article-footer-next" title="同步和异步"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
+1 -1
View File
@@ -138,7 +138,7 @@ engine
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -178,7 +178,7 @@ engine<span class="token punctuation">.</span><span class="token function">regis
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="render-tag-content.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
@@ -227,7 +227,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -136,7 +136,7 @@ res<span class="token punctuation">.</span><span class="token function">render</
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</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
@@ -122,7 +122,7 @@ harttle<span aria-hidden="true" class="line-numbers-rows"><span></span><span></s
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2023-02-14T15:00:59.338Z" itemprop="dateModified">上次更新:2023-02-14</time>
<time class="article-footer-updated" datetime="2023-02-22T15:56:57.481Z" itemprop="dateModified">上次更新:2023-02-22</time>
<a href="sync-and-async.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>