鹈鹕主题,最初用于minchin.ca。

minchin.pelican.themes.minchindotca的Python项目详细描述


Minchin dot CAPelican的主题, 用python编写的静态站点生成器。

Minchin dot CA主题基于引导程序3,最初用于 Minchin.ca

安装

安装Minchin dot CA主题的最简单方法是使用 关于皮普。这也将自动安装所需的依赖项。

pip install minchin.pelican.themes.minchindotca

然后,在pelicanconf.py文件中,导入模型,使用 内置函数指定主题位置,设置默认值 颜色方案,设置所用的图像处理图案,并添加一些金贾 主题使用的筛选器:

fromminchin.pelican.themesimportminchindotcaTHEME=minchindotca.get_path()BOOTSTRAP_THEME='minchindotca'IMAGE_PROCESS={'article-feature':["scale_in 848 848 True"],'index-feature':["scale_in 263 263 True"],}# Jijna2 filtersdefdatetimefilter(value,format='%Y/%m/%d %H:%M'):"""convert a datetime to a different format."""returnvalue.strftime(format)defarticle_date(value):"""Converts a date to the format we want it displayed on the article
       template.
    """returnvalue.strftime('%A, %B %-d, %Y')defbreaking_spaces(value):"""Converts non-breaking spaces to regular spaces."""returnvalue.replace('\u00A0',' ')JINJA_FILTERS={'datetimefilter':datetimefilter,'article_date':article_date,'breaking_spaces':breaking_spaces,}

您可能还需要通过使用 设置(见下文)。

要求

Minchin dot ca需要鹈鹕和image_process插件。 这可以通过pip:

手动安装
pip install pelican minchin.pelican.plugins.image_process

附加设置

细节即将揭晓。同时,请参考Bootstrap 3 theme上的设置。

学分

Daan Debie开发的原始主题。

sphinx的Jeff ForcierAlabaster theme可以将主题作为python包安装的想法。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在收到spring mqtt集成中停止重复订阅保留的消息   java改造安卓在textview中显示数据   读取CSV Java时获取While循环中的最后一行数据   将Java程序转换为小程序的部署   java如何在不向Src添加文件的情况下将文件放入GitLab测试   java包含字节数组列表的方法   java十进制转换错误   eclipse是由java引起的。lang.ClassNotFoundException:org。springframework。js。资源ResourceServlet   继承Java向上与向下   java自动调整标签内容的大小   java从Android中的AlertDialog返回信息   java在声明按钮时仿真程序中出现错误   java编写刷新线程的最佳方法   Java初学者错误   java需要帮助重置JComboBox   java如何用Spring/MultipartFile捕获中断流   java是否可以在JUnit中设置被测试类的方法的返回值?