Skip to content

Commit 7ee368e

Browse files
committed
Modify TOC Show
1 parent 2e9dd79 commit 7ee368e

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ enableGitInfo = true
2929
style = 'github'
3030
tabWidth = 4
3131
[markup.tableOfContents]
32-
endLevel = 3
32+
endLevel = 5
3333
ordered = false
3434
startLevel = 2
3535

docs/blog/2006/07/my-wordpress-plugins.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/blog/2009/06/bookmarks-chinese.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link type=text/css rel=stylesheet href=https://unpkg.com/@waline/client/dist/waline.css><link type=text/css rel=stylesheet href=https://zhu8.net/assets/css/custom.css media=all><link type=text/css rel=stylesheet href=https://zhu8.net/assets/css/colors.css media=all><link type=text/css rel=stylesheet href=https://zhu8.net/assets/css/styles.css media=all><link type=text/css rel=stylesheet href=https://zhu8.net/assets/css/clip.css media=all><link type=text/css rel=stylesheet href=https://cdn.staticfile.org/font-awesome/5.15.4/css/all.min.css media=all><link rel=preconnect href=https://fonts.googleapis.com crossorigin><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Philosopher|Noto+Serif+SC|ZCOOL+XiaoWei|Long+Cang&display=swap" media=print onload='this.media="all"'><noscript><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Philosopher|Noto+Serif+SC|ZCOOL+XiaoWei|Long+Cang&display=swap"></noscript><script>(function(i,t){var n=document,s='script',e=n.createElement(s),o=n.getElementsByTagName(s)[0];e.src=i,t&&e.addEventListener('load',function(e){t(e)}),o.parentNode.insertBefore(e,o)})('https://zhu8.net/lib/pangu.min.js',function(){pangu.spacingPage()})</script></head><body class="bg-gray-100 text-gray-700 font-sans"><div class="p-6 sm:p-10 md:p-16 flex flex-wrap"><header class="w-full md:w-2/5 xl:w-1/2 md:pr-12 lg:pr-20 xl:pr-24 order-1 md:order-1 max-w-2xl"><div class="z-50 bg-opacity-75 bg-opacity-custom lg:min-w-0.7 max-w-xl md:float-right md:text-right leading-loose tracking-tight md:sticky md:top-0 pt-2"><div><h1><a href=https://zhu8.net/ title=猪八的网:浮生志 class="heading font-cursive icon">猪八的网:浮生志</a></h1></div><h2 class=pt-2><i class="far fa-bookmark"></i>Movable Type中文化书签插件-Bookmarks Chinese</h2><div class="flex flex-wrap justify-end pt-2"><div class="md:flex-grow-0 font-light"><i class="fas fa-folder-open"></i> <a class="post-taxonomy-category text-medium-red-violet-600 hover:text-medium-red-violet-400" href=https://zhu8.net/categories/%E9%BB%91%E7%8A%AC-other/>黑犬 | Other</a>
77
&nbsp;&nbsp;
88
<i class="fas fa-tags"></i> <a class="post-taxonomy-tag text-eucalyptus-500" href=https://zhu8.net/tags/bookmarks/>Bookmarks</a>&nbsp;/ <a class="post-taxonomy-tag text-eucalyptus-500" href=https://zhu8.net/tags/plugin/>Plugin</a>&nbsp;/ <a class="post-taxonomy-tag text-eucalyptus-500" href=https://zhu8.net/tags/%E6%B1%89%E5%8C%96/>汉化</a>&nbsp;/ <a class="post-taxonomy-tag text-eucalyptus-500" href=https://zhu8.net/tags/%E7%A8%8B%E5%BA%8F/>程序</a></div><time class="text-eucalyptus-500 md:text-right md:flex-grow font-light pl-4" datetime=2009-06-16T20:58:44+08:00><i class="fas fa-calendar-day"></i>2009-06-16 20:58 @ Tue</time></div><span class="a-gray text-md text-gray-500 leading-relaxed pt-2"><i class="fas fa-info"></i> 全文共 1033 字,已阅 <i class=waline-pageview-count></i> 次,需<i class="fas fa-stopwatch"></i><span class=more-meta>4分&nbsp;41秒</span></span>
9-
<details class=toc open><summary></summary><div class="inline toc-content"><nav id=TableOfContents><ul><li><ul><li><a href=#描述><strong>描述:</strong></a></li><li><a href=#插件结构font><strong>插件结构:</strong></font></a></li><li><a href=#模板标签font><strong>模板标签:</strong></font></a></li><li><a href=#例子><strong>例子:</strong></a></li><li><a href=#如何使用><strong>如何使用:</strong></a></li></ul></li></ul></nav></div></details><hr></div></header><main class="w-full md:w-3/5 xl:w-1/2 max-w-3xl order-2 md:order-2 min-h-70vh pt-2 pb-4"><article><div class="mx-auto content"><div class=c-rich-text><h3 id=描述><strong>描述:</strong></h3><p><em><strong>Bookmarks Chinese</strong></em> 是我在使用了一些如<a href=http://www.addthis.com/ title=AddThis>addthis.com</a>的按钮之后,发现对中文支持很差,所以弄的一个中文化的书签插件如果你还需要其他的按钮,请自行参考开发即可。<br>作者信息:Zhu8 (<a href=https://zhu8.net title=Zhu8>https://zhu8.net</a>)<br>插件地址:<a href=https://zhu8.net/blog/2009/06/bookmarks-chinese.html title=Zhu8>https://zhu8.net/blog/2009/06/bookmarks-chinese.html</a><br>插件版本:1.0 Final (2009.6.4)</p><h3 id=插件结构font><strong>插件结构:</strong></font></h3><blockquote><p>mt-static/<br>    plugins/<br>        BookmarksChinese/<br>            style.css<br>            images/<br>              addtoany.png<br>              google.png<br>              digg.png<br>              technorati.png<br>              delicious.png<br>              friendfeed.png<br>              twitter.png</p></blockquote><blockquote><p>cgi-bin/mt/<br>    plugins/<br>        BookmarksChinese/<br>            BookmarksChinese.pl<br>            php/<br>              function.mtaddtoanyurl.php<br>              function.mtgoogleurl.php<br>              function.mtdiggurl.php<br>              function.mttechnoratiurl.php<br>              function.mtdeliciousurl.php<br>              function.mtfriendfeedurl.php<br>              function.mttwitterurl.php</p></blockquote><h3 id=模板标签font><strong>模板标签:</strong></font></h3><blockquote><p>&lt;$MTAddToAnyURL$><br>&lt;$MTDiggURL$><br>&lt;$MTDeliciousURL$><br>&lt;$MTFriendFeedURL$><br>&lt;$MTGoogleURL$><br>&lt;$MTTechnoratiURL$><br>&lt;$MTTwitterURL$></p></blockquote><h3 id=例子><strong>例子:</strong></h3><p><img src=https://zhu8.net/images/posts/BookmarksChinese.png alt="Bookmarks Chinese Screenshot" title="Bookmarks Chinese Screenshot"></p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-html data-lang=html><span style=display:flex><span>&lt;<span style=color:navy>a</span> <span style=color:teal>class</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;delicious&#34;</span> <span style=color:teal>href</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;&lt;$MTDeliciousURL$&gt;&#34;</span> <span style=color:teal>title</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;收藏到美味书签&#34;</span> <span style=color:teal>target</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;_blank&#34;</span>&gt;&lt;/<span style=color:navy>a</span>&gt;
9+
<details class=toc open><summary></summary><div class="inline toc-content"><nav id=TableOfContents><ul><li><ul><li><a href=#描述><strong>描述:</strong></a></li><li><a href=#插件结构font><strong>插件结构:</strong></font></a></li><li><a href=#模板标签font><strong>模板标签:</strong></font></a></li><li><a href=#例子><strong>例子:</strong></a></li><li><a href=#如何使用><strong>如何使用:</strong></a><ul><li><a href=#结束语><strong>结束语:</strong></a></li></ul></li></ul></li></ul></nav></div></details><hr></div></header><main class="w-full md:w-3/5 xl:w-1/2 max-w-3xl order-2 md:order-2 min-h-70vh pt-2 pb-4"><article><div class="mx-auto content"><div class=c-rich-text><h3 id=描述><strong>描述:</strong></h3><p><em><strong>Bookmarks Chinese</strong></em> 是我在使用了一些如<a href=http://www.addthis.com/ title=AddThis>addthis.com</a>的按钮之后,发现对中文支持很差,所以弄的一个中文化的书签插件如果你还需要其他的按钮,请自行参考开发即可。<br>作者信息:Zhu8 (<a href=https://zhu8.net title=Zhu8>https://zhu8.net</a>)<br>插件地址:<a href=https://zhu8.net/blog/2009/06/bookmarks-chinese.html title=Zhu8>https://zhu8.net/blog/2009/06/bookmarks-chinese.html</a><br>插件版本:1.0 Final (2009.6.4)</p><h3 id=插件结构font><strong>插件结构:</strong></font></h3><blockquote><p>mt-static/<br>    plugins/<br>        BookmarksChinese/<br>            style.css<br>            images/<br>              addtoany.png<br>              google.png<br>              digg.png<br>              technorati.png<br>              delicious.png<br>              friendfeed.png<br>              twitter.png</p></blockquote><blockquote><p>cgi-bin/mt/<br>    plugins/<br>        BookmarksChinese/<br>            BookmarksChinese.pl<br>            php/<br>              function.mtaddtoanyurl.php<br>              function.mtgoogleurl.php<br>              function.mtdiggurl.php<br>              function.mttechnoratiurl.php<br>              function.mtdeliciousurl.php<br>              function.mtfriendfeedurl.php<br>              function.mttwitterurl.php</p></blockquote><h3 id=模板标签font><strong>模板标签:</strong></font></h3><blockquote><p>&lt;$MTAddToAnyURL$><br>&lt;$MTDiggURL$><br>&lt;$MTDeliciousURL$><br>&lt;$MTFriendFeedURL$><br>&lt;$MTGoogleURL$><br>&lt;$MTTechnoratiURL$><br>&lt;$MTTwitterURL$></p></blockquote><h3 id=例子><strong>例子:</strong></h3><p><img src=https://zhu8.net/images/posts/BookmarksChinese.png alt="Bookmarks Chinese Screenshot" title="Bookmarks Chinese Screenshot"></p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-html data-lang=html><span style=display:flex><span>&lt;<span style=color:navy>a</span> <span style=color:teal>class</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;delicious&#34;</span> <span style=color:teal>href</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;&lt;$MTDeliciousURL$&gt;&#34;</span> <span style=color:teal>title</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;收藏到美味书签&#34;</span> <span style=color:teal>target</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;_blank&#34;</span>&gt;&lt;/<span style=color:navy>a</span>&gt;
1010
</span></span></code></pre></div><h3 id=如何使用><strong>如何使用:</strong></h3><ol><li><p>下载插件:{<a href=https://zhu8.net/uploads/BookMarksChinese.zip title="Bookmarks Chinese 下载地址"><strong>这里下载</strong></a></p></li><li><p>参照文件目录,上传插件。</p></li><li><p>修改Index Templates中的Stylesheet(Style.css),在最后一行加上</p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-css data-lang=css><span style=display:flex><span>@<span style=color:#000;font-weight:700>import</span> <span style=color:navy>url</span><span style=color:#000;font-weight:700>(&lt;$</span><span style=color:navy>mt</span>:<span style=color:#3c5d5d;font-weight:700>StaticWebPath</span><span style=color:#000;font-weight:700>$&gt;</span><span style=color:navy>plugins</span><span style=color:#000;font-weight:700>/</span><span style=color:navy>BookmarksChinese</span><span style=color:#000;font-weight:700>/</span><span style=color:navy>style</span>.<span style=color:#458;font-weight:700>css</span><span style=color:#000;font-weight:700>)</span>;
1111
</span></span></code></pre></div></li><li><p>比如小站,我修改了Template Modules中的Entry Metadata,在其中找到:</p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-html data-lang=html><span style=display:flex><span>&lt;<span style=color:navy>mt:ifpingsactive</span>&gt;
1212
</span></span><span style=display:flex><span>&lt;<span style=color:navy>span</span> <span style=color:teal>class</span><span style=color:#000;font-weight:700>=</span><span style=color:#d14>&#34;separator&#34;</span>&gt;¦&lt;/<span style=color:navy>span</span>&gt;

0 commit comments

Comments
 (0)