Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Pelican powered博客中启用搜索功能?_Python_Search_Blogs_Pelican - Fatal编程技术网

Python 在Pelican powered博客中启用搜索功能?

Python 在Pelican powered博客中启用搜索功能?,python,search,blogs,pelican,Python,Search,Blogs,Pelican,我正在使用鹈鹕和主题来生成我的博客。但是,我不知道如何打开搜索功能。我已经添加了tipue_搜索和sitemap插件,但是运气不好。我附上配置文件pelicanconf.py,以供参考 #!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'abc' SITENAME = u"abc" DEFAULT_DATE = 'fs' SITEURL = 'htt

我正在使用鹈鹕和主题来生成我的博客。但是,我不知道如何打开搜索功能。我已经添加了
tipue_搜索
sitemap
插件,但是运气不好。我附上配置文件
pelicanconf.py
,以供参考

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

AUTHOR = u'abc'
SITENAME = u"abc"
DEFAULT_DATE = 'fs'
SITEURL = 'http://example.github.io'
TIMEZONE = 'Asian/Shanghai'
THEME = 'elegant'
DEFAULT_PAGINATION = 10

ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/index.html'

# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True

PLUGIN_PATH = 'pelican-plugins'
PLUGINS = ["sitemap", 
       "tipue_search", 
       "render_math", 
       "summary",
       "neighbors"]

SITEMAP = {
    "format": "xml",
    "priorities": {
        "articles": 0.7,
        "indexes": 0.5,
        "pages": 0.3,
    },
    "changefreqs": {
        "articles": "monthly",
        "indexes": "daily",
        "pages": "monthly",
    }
}

要使用Tipue搜索,在启用插件后还需要执行更多步骤。这是一个很好的教程


不要忘记,您也可以使用。

要使用Tipue search,启用插件后还需要执行一些步骤。这是一个很好的教程


不要忘记,您也可以使用。

检查此链接,复制配置文件并在其上进行修改

检查此链接,复制配置文件并在其上进行修改

请在您的答案中包含更多内容,而不仅仅是一个链接!请在您的答案中包含更多内容,而不仅仅是一个链接!