2 Star 8 Fork 6

院主/typecho-fans插件库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github/workflows
AMP
APlayerAtBottom
AbbrSlug
AjaxComments
AllowIp
Announcement
AnotherLike
AntiSpam
AppStore
ArticleList
ArticleTemplate
At
Attachment
AudioPlayer
AutoBackup
AutoLaTeX
AutoSlug
AutoTags
Avatars
BackToTop
CSDN
CatClaw
CateFilter
ChangyanCallback
Ckeditor4Typecho
CodeMirror
CodeStyle
CommentFilter
CommentPush
CommentToMail
ContentIndex
Contribute
CosForTypecho
DbManager
DevTool
DownloadFile
DynamicLines
Editor
EditorMD
EmlogToTypecho
GAuthenticator
GHbutton
GeeTest
GithubCard
GithubWidgetUser
GoLinks
GoodLuck
GoogleAnalytics
GoogleCodePrettify
GravatarCache
Hermit
HighSlide
HighlightSearchKeywords
Html2Text
IQapTcha
JSON
JWPlayer
JustFeed
Keywords
KirinShiKi
LREditor
Like
Links
LoginDesigner
LoveKKComment
LoveKKWeiBo
MagikeEditor
MenuTree
Plugin.php
README.md
MenuTree_hongweipeng
MostCache
MyPlayer
MyTagCloud
Ncache
OssForTypecho
Passport
PasteImage
PostRating
PostsCategoryChange
Prism
QNUpload
QiniuFile
RandomThumbnail
Rdog
Reposidget
RewriteRule
RoutesHelper
SCS
ShortLinks
Sinauth
Sitemap
SlantedExtend
SlimBox2
Smilies
Snowstorm
Soso
SplitArchivePage
Stat
Sticky
Subscriber
SyncPost
TEReplace
TeKit
TeStore
ThemeDemo
Tinyfader
Titleshow
TopTop
Typembed
Ueditor
Ukagaka
Update
UpdateAssistant
UploadPlugin
UpyunFile
UserSign
Version
Views
Watermark
WeChatHelper
WeChatShare
WeiboSync
XiaMiPlayer
YoduBGM
YoduPlayer
ZIP_CDN
Zan
alexarank
changyandandian
reCAPTCHA
reCAPTCHAv3
.gitignore
AUTO-UPDATE.php
README.md
TESTORE.md
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
Loading...
README
TF Logo

MenuTree v0.1.2 - 社区维护版

—— 嵌入式文章内容目录树插件,可使用短代码标签或模板函数自定显示位置。

使用说明版本历史贡献作者附注/链接授权协议


使用说明

可根据文章内容中的子标题结构生成锚点目录树,点击链接即可快速跳转至相应位置。支持在文内或模板中控制输出位置,新版添加了编辑器快捷插入按钮。

使用方法

1. 下载本插件,放在 usr/plugins/ 目录中,确保文件夹名为 MenuTree;
2. 激活插件,设置内可开关“嵌入模式”即文章标签输出,“独立模式”即模板函数输出;
3. “嵌入模式”勾选时,编辑文章用按钮插入或手写<!-- index-menu -->标签发布即可显示目录树;
4. “独立模式”勾选时,修改模板文件如post.php中写入<?php $this->treeMenu(); ?>也可显示。

注意事项

  • 插件仅输出html不带css,请根据以下class命名自行处理样式:
    .index-menu    容器 div
    .index-menu-list    列表 ul
    .index-menu-item    列表项 li
    .index-menu-link    列表项链接 a
    .menu-target-fix {display:block; position:relative; top:-60px; //偏移量}    锚点跳转定位

版本历史

  • v0.1.2 (20-07-15 @jzwalk)
    • 添加自适应编辑器按钮,合并1个衍生版本功能:
  • v0.1.1 (18-05-24 @wuruowuxin74)
    • 增加摘要隐藏处理;
    • 增加锚点定位class。
  • v0.1.0 (15-06-20 @Melon)
    • 原作发布。

贡献作者

jzwalk xxyangyoulin wuruowuxin74 Melon
jzwalk (2020) xxyangyoulin (2019) wuruowuxin74 (2018) Melon (2015)

附注/链接

本社区维护版已包含以下各版本功能并做优化调整:

欢迎社区成员继续贡献代码参与更新。
另有带样式目录树插件ContentIndex和Js悬浮目录树插件MenuTree可供参考。

授权协议

TF目录下的社区维护版作品如果没有明确声明,默认采用与Typecho相同的GPLv2开源协议。(要求提及出处,保持开源并注明修改。)

MenuTree原作未附协议声明,原作者保留所有权利。 © Melon

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/taotecode/typecho_fans_plugin_library.git
git@gitee.com:taotecode/typecho_fans_plugin_library.git
taotecode
typecho_fans_plugin_library
typecho-fans插件库
master

搜索帮助