一个鹈鹕插件,从你的元标签和设置的相关帖子列表。
pelican_related的Python项目详细描述
安装
此插件未在PYPI上注册。您应该克隆此存储库并通过pip安装:
git clone git@github.com:wutali/pelican_related.git cd pelican_related pip install -e .
配置
将此代码放到pelicanconf.py上并对其进行自定义:
RELATED_POSTS_MIN = 3 # Minimum number of posts to be shown. RELATED_POSTS_LIMIT = 6 # Limit number of posts to be shown. RELATED_POSTS_FROM_CATEGORY = True # Weight related posts based on category. RELATED_POSTS_FROM_TAGS = True # Weight related posts based on tags. RELATED_POSTS_SHUFFLE = True # Shuffle posts before show it. # If number of related posts is not up to the minimum, add some articles based on this setting. # You can choose the option from 'shuffle' or 'new'. RELATED_POSTS_NOT_ENOUGH = 'shuffle'
许可证
鹈鹕相关是根据麻省理工学院的许可证发布的。http://www.opensource.org/licenses/mit-license