나는 내 블로그를 생성하기 위해 펠리컨과 Elegant 테마를 사용하고 있습니다. 그러나, 나는 검색 기능을 켜는 방법을 알아낼 수 없다. tipue_search
및 sitemap
플러그인을 추가했지만 행운은 없습니다. 참조 용으로 구성 파일 pelicanconf.py
을 첨부하려고합니다.Pelican 기반 블로그에서 검색 기능을 사용 하시겠습니까?
#!/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",
}
}
에이 링크와 설정 파일을 복사 및 수정 된 단지 링크보다는 당신의 대답에 더를 기입하십시오! – Ajean