GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — plugins/MenuTree at master · huuugs/plugins

Expand file tree

/

MenuTree

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

MenuTree

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Plugin.php
Plugin.php
 
 
README.md
README.md
 
 

README.md

Outline
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个衍生版本功能:
      • 增加模板函数输出及复选框设置(@xxyangyoulin)。
  • 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)

附注/链接

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

  • Fork版(xxyangyoulin) - 添加模板输出与面板设置。
  • 修正版(wuruowuxin74) - 添加摘要/锚点处理。
  • 原版 - 实现插入代码替换目录树功能。

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

授权协议

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

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

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.