鹈鹕主题,最初用于minchin.ca。
seafoam的Python项目详细描述
安装
安装 sefoam主题的最简单方法是使用 匹普。这也将自动安装所需的依赖项。
pip install seafoam
然后,在 pelicanconf.py 文件中,导入模块,使用 内置函数指定主题位置,设置默认值 配色方案(即将推出更多选项),添加所需的插件,并设置 使用的图像处理模式:
importseafoamTHEME=seafoam.get_path()BOOTSTRAP_THEME='seafoam'PLUGINS=['minchin.pelican.jinja_filters','minchin.pelican.plugins.image_process',# others, as desired...]IMAGE_PROCESS={'article-feature':["scale_in 848 848 True"],'index-feature':["scale_in 263 263 True"],}# Generate 404 error pageTEMPLATE_PAGES={'404.html':'404.html',}# the rest of the your configuration file...
您可能还需要通过使用 设置(见下文)。