Skip to content

Commit

Permalink
v1.27.2 feat: add the element in the config. df2504c
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 28, 2024
1 parent a69c843 commit 4e006a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion introduce/api/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,16 @@ <h3 id="favicon"><a aria-hidden="true" tabindex="-1" href="#favicon" class="anch
# -----------------------
favicon: ./logo.png
"><div onclick="copied(this)" class="copied"><svg class="octicon-copy" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg><svg class="octicon-check" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg></div></pre>
<h3 id="elment"><a aria-hidden="true" tabindex="-1" href="#elment" class="anchor"><span class="icon icon-link"></span></a><code>elment</code></h3>
<p>模板中的某些节点 props 设置部位样式,例如设置 <code>wrapper</code> 定义网页最外层最大宽度:</p>
<pre class="language-yml"><code class="language-yml code-highlight"><span class="code-line line-number" line="1"><span class="token key atrule">elment</span><span class="token punctuation">:</span>
</span><span class="code-line line-number" line="2"> <span class="token comment"># 用于定义最外层宽度样式</span>
</span><span class="code-line line-number" line="3"> <span class="token key atrule">wrapper</span><span class="token punctuation">:</span> style=max<span class="token punctuation">-</span>width<span class="token punctuation">:</span>690px;
</span></code><input type="hidden" value="elment:
# 用于定义最外层宽度样式
wrapper: style=max-width:690px;
"><div onclick="copied(this)" class="copied"><svg class="octicon-copy" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg><svg class="octicon-check" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg></div></pre>
<p>注意 ⚠️:目前只扩展了一个 <code>wrapper</code></p>
<h3 id="homepage"><a aria-hidden="true" tabindex="-1" href="#homepage" class="anchor"><span class="icon icon-link"></span></a><code>homepage</code></h3>
<p>主要用于生成 <a href="https://www.sitemaps.org/">sitemap.txt</a> 文件。当前配置也将传递到模版中使用。</p>
<pre class="language-yml"><code class="language-yml code-highlight"><span class="code-line line-number" line="1"><span class="token key atrule">homepage</span><span class="token punctuation">:</span> https<span class="token punctuation">:</span>//jaywcjlove.github.io/idoc/
Expand Down Expand Up @@ -851,7 +861,7 @@ <h3 id="layout"><a aria-hidden="true" tabindex="-1" href="#layout" class="anchor
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
</svg>
<span>Edit this page on GitHub</span>
</a><span class="atime">2023/09/11</span></section>
</a><span class="atime">2024/02/28</span></section>
</markdown-style>
<nav class="tocs">
<aside class="inner toc">
Expand All @@ -867,6 +877,7 @@ <h3 id="layout"><a aria-hidden="true" tabindex="-1" href="#layout" class="anchor
<li><a href="#tocs" class="tocs-link">tocs</a></li>
<li><a href="#logo" class="tocs-link">logo</a></li>
<li><a href="#favicon" class="tocs-link">favicon</a></li>
<li><a href="#elment" class="tocs-link">elment</a></li>
<li><a href="#homepage" class="tocs-link">homepage</a></li>
<li><a href="#minify" class="tocs-link">minify</a></li>
<li><a href="#cachefilestat" class="tocs-link">cacheFileStat</a></li>
Expand Down
2 changes: 1 addition & 1 deletion sitemap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ https://wangchujiang.com/idoc/introduce/getting-started/publish.html
https://wangchujiang.com/idoc/introduce/getting-started/site-add.html
https://wangchujiang.com/idoc/introduce/getting-started/site-creation.html
https://wangchujiang.com/idoc/introduce/getting-started/site-preparation.html
https://wangchujiang.com/idoc/introduce/theme/templates.html
https://wangchujiang.com/idoc/introduce/theme/theme-defalut.html
https://wangchujiang.com/idoc/introduce/theme/templates.html
https://wangchujiang.com/idoc/introduce/theme/variables.html
https://wangchujiang.com/idoc/index.html

0 comments on commit 4e006a5

Please sign in to comment.