【问题标题】:How can I change Pelican Static Site Theme (on Windows dev Machine)?如何更改 Pelican 静态站点主题(在 Windows 开发机器上)?
【发布时间】:2019-02-20 03:05:53
【问题描述】:

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

我生成和查看

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

即使.Scripts\pelican -t 'notmyidea' 也不起作用

我已将 pelican-themes 和 pelican-plugins 克隆到我的项目文件夹中。这是我的配置文件内容

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',
#         }

【问题讨论】:

    标签: pelican


    【解决方案1】:

    改变

    THEME = "pelican-themes/blue-penguin"
    

    THEME = "blue-penguin"
    

    使用命令

    pelican-themes -l
    

    将显示您已安装的主题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多