如何更改Pelican静态站点主题(在Windows开发机上)?

时间:2019-02-20 03:05:54

标签: pelican

我无法从默认主题切换。我正在使用Powershell并在Windows 7上运行。

我生成并查看

.Scripts\pelican .\content
.Scripts\pelican --listen

即使.Scripts\pelican -t 'notmyidea'无效

我将pelican主题和pelican插件克隆到了我的项目文件夹中。这是我的配置文件内容

publishconf.py:

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *

# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://aself.com'
RELATIVE_URLS = False

FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'

DELETE_OUTPUT_DIRECTORY = True

# Following items are often useful when publishing

#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""

THEME = "pelican-themes/blue-penguin"
# THEME = 'plumage'
# THEME = 'notmyidea'
LOAD_CONTENT_CACHE = False

PLUGINS_PATHS = ["plugins", "pelican-plugins"]
PLUGINS = ['assets','tipue_search']
TIPUE_SEARCH = True
# TEMPLATE_PAGES = {
#         'search.html': 'search.html',
#         }

1 个答案:

答案 0 :(得分:0)

更改

THEME = "pelican-themes/blue-penguin"

THEME = "blue-penguin"

使用命令

pelican-themes -l

将向您显示您已安装的主题