Skip to content
This repository has been archived by the owner on May 6, 2018. It is now read-only.
lizheming edited this page Mar 26, 2016 · 9 revisions

1. Page2Link - 友情链接插件

http://github.com/lizheming/PMBlog/tree/plugins/Page2Link

友情链接插件,按照links.example.html的格式(其实就是Markdown的链接格式)将链接一行一个写好,保存成links.html。主题模板中可以使用{{link}}变量调用它。{{link}}变量是一个数组变量,需要使用循环才能输出,类似如下:

{% for item in link %}
{{item.title}}	{# LinkItem's title #}
{{item.url}}	{# LinkItem's url #}
{{item.description}}	{# LinkItem's description #}
{% endfor %}

2. Page2Menu - 导航链接插件

http://github.com/lizheming/PMBlog/tree/plugins/Page2Menu

导航链接插件,按照menus.example.html的格式(其实就是Markdown的链接格式)将链接一行一个写好,保存成menus.html。主题模板中可以使用{{menus}}变量调用它。{{menus}}变量是一个数组变量,需要使用循环才能输出,类似如下:

{% for item in menus%}
	{{item.title}}	{# MenuItem's title #}
	{{item.url}}	{# MenuItem's url #}
	{{item.description}}	{# MenuItem's description #}
{% endfor %}

3. SocialComment - 社会化评论插件

http://github.com/lizheming/PMBlog/tree/plugins/SocialComment

社会化评论插件,需要实现在SocialComment/config.php中定义好你对应的社会化评论系统的ID,必须填写一个,否则程序运行会中止。两个都填写的话默认是取最开头的一个。填写好后在你模板中想要插入评论的地方使用{{comment}}变量即可输出评论框。

4. Archive - 日志树图插件

http://github.com/lizheming/PMBlog/tree/plugins/Archive.php

日志树图插件,该插件能够将所有日志按照时间统一归档后并以树图的形式输出。使用方法也非常简单,启用插件后在主题模板中使用{{Archive}}变量即可输出树图。

5. Categories - 日志分类插件

http://github.com/lizheming/PMBlog/tree/plugins/Categories.php

日志分类插件,为博客提供完整的分类输出功能,包括分类索引文件输出和分类云输出。启动插件后生成博客时会自动生成各分类的导航页,诸如http://xxx.com/category/life/之类的,如果是没有设置分类的日志,则默认分类为unclassified。同时分类云可以输出所有的分类列表,在主题模板中使用{{CategoryCloud}}变量来使用它。注意它也是一个数组变量,需要使用循环才能输出它,类似于:

{% for category in CategoryCloud %}
	{{category.title}}		{# Show categoryname #}
	{{category.url}}			{# show categoryURL #}
	{{category.length}}			{# show categoryPostLength #}
{% endfor %}

6. GistEmbed - Gist快捷调用插件

http://github.com/lizheming/PMBlog/tree/plugins/GistEmbed.php

Gist快捷调用插件,启用插件后只要在日志中以单行形式贴上Gist的网址就可以将当前Gist的代码内容贴到文章中来了,非常的方便!

7. RecentPost - 最近文章插件

http://github.com/lizheming/PMBlog/tree/plugins/RecentPost.php

最近文章插件,输出最近的文章的标题和链接,默认是10篇,更多的话可以修改插件中的数字。在模板中使用{{RecentPost]}变量即可调用它。它也是一个数组变量,需要使用循环输出它,例如:

{% for post in RecentPost %}
    {{post.title}}    {# show post tile #}
    {{post.url}}      {# show post url  #}
{% endfor %}

8. Sitemap - Sitemap生成插件

http://github.com/lizheming/PMBlog/tree/plugins/Sitemap.php

Sitemap生成插件,启用插件后会在生成博客时在SITE_DIR根目录生成一个sitemap.xml,方便搜索引擎索引收录。

9. Tags - 日志标签插件

http://github.com/lizheming/PMBlog/tree/plugins/Tags.php

日志标签插件,为博客提供完整的标签输出功能,包括标签索引文件输出和分类云输出。启动插件后生成博客时会自动生成各标签的导航页,诸如http://xxx.com/tag/life/之类的,如果是中文标签名的话会被urlencode()转义。同时标签云可以输出所有的标签列表,在主题模板中使用{{TagCloud}}变量来使用它。注意它也是一个数组变量,需要使用循环才能输出它,类似于:

{% for tag in TagCloud %}
	{{tag.title}}		{# Show tagname#}
	{{tag.url}}			{# show tagurl#}
	{{tag.length}}			{# show tagpostlength#}
{% endfor %}

10. XiaMiPlayer - 虾米音乐播放器插件

http://github.com/lizheming/PMBlog/tree/plugins/XiaMiPlayer.php

虾米音乐播放器插件,启用插件后只要在日志中以单行的形式贴上虾米网上的音乐地址就可以生成一个当前音乐的播放器。

11. Authlogin - 后台登陆验证插件

http://github.com/lizheming/PMBlog/tree/plugins/Authlogin.php

后台登陆验证插件,启用插件后会为程序后台增加用户登陆操作。启用插件前需要进入插件修改默认的账号和密码,否则无法使用程序。

12. Editor - 在线编辑器插件

http://github.com/lizheming/PMBlog/tree/plugins/Editor

在线编辑器插件,启用插件后访问 后台网址+?edit 即可访问编辑器页面发布新文章。访问 后台网址+?edit=文件名 即可对旧文档进行修改(插件会自动判断指定文件是否存在,不存在则仍进入新文章发布流程)。 带自动保存功能,最好配合Authlogin插件一块使用。

13. Links - 友情链接插件

http://github.com/lizheming/PMBlog/tree/plugins/Links

友情链接插件,在Page2LinkPage2Menu的基础上做了分组功能的抽象。 按照links.example.md的格式(其实就是Markdown的链接格式)将分组和链接一行一个写好,保存成links.md。主题模板中可以使用{{links}}变量调用它。

用法如下:

{% for item in links.groupname %}
{{item.title}}	{# LinkItem's title #}
{{item.url}}	{# LinkItem's url #}
{{item.description}}	{# LinkItem's description #}
{% endfor %}

14. Upyun - 又拍云上传插件

https://github.com/lizheming/PMBlog/tree/plugins/Upyun

又拍云上传插件,启用插件后可将博客上传至你的又拍云静态空间,具体可查看的readme

15. Qiniu - 七牛上传插件

https://github.com/lizheming/PMBlog/tree/plugins/Qiniu

七牛上传插件,启用插件后可将博客上传至你的七牛云静态空间,具体可查看的readme

16. Hello - 计算生成博客时间插件

https://github.com/lizheming/PMBlog/tree/plugins/Hello.php

计算博客生成时间插件,启用插件后在页面生成接触之后显示耗时,同时也是PMBlog插件制作者的"Hello world"插件。

17. Update - 检查程序更新插件

https://github.com/lizheming/PMBlog/tree/plugins/Update.php

检查PMBlog程序更新插件,如果有更新则提醒用户需要更新程序了。

18. Export2WXR - 文章导出插件

https://github.com/lizheming/PMBlog/tree/plugins/Export2WXR.php

文章导出插件,安装插件后编译文章会生成一个 .xml 的 WXR 文件并提供下载,可以通过它导入到 WordPress 等相关支持的博客程序中。