2014-06-12 4 views
1

나는 내 블로그를 생성하기 위해 펠리컨과 Elegant 테마를 사용하고 있습니다. 그러나, 나는 검색 기능을 켜는 방법을 알아낼 수 없다. tipue_searchsitemap 플러그인을 추가했지만 행운은 없습니다. 참조 용으로 구성 파일 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", 
    } 
} 

답변

3

팁 검색을 사용하려면 플러그인을 활성화 한 후에 실행할 단계가 더 있어야합니다. Here 좋은 자습서입니다.

Google Custom Search도 사용할 수 있습니다.