Try Pelican on my macbook
install brew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
install python, pip and pelican brew install python sudo easy_install pip sudo pip install pelican markdown
output: Successfully installed blinker-1.3 docutils-0.12 feedgenerator-1.7 jinja2-2.7.3 markdown-2.6 markupsafe-0.23 pelican-3.5.0 pygments-2.0.2 unidecode-0.4.17
- execute: pelican-quickstart in yoursite folder Problem1:some errors showed up: ValueError: unknown locale: UTF-8 Solution: add some lines to your ~/.bash_profile: export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8
Problem2: No module named html_parser solution: pip install six still encounter the error , upgrade python form 2.7.6 to 2.7.9 still encounter the error
sudo vi /Library/Python/2.7/site-packages/pelican/readers.py #from six.moves.html_parser import HTMLParser from HTMLParser import HTMLParser
- add a article test.md in content folder
Title: Journal Date: 2015-02-27 10:20 Modified: 2015-02-27 19:30 Category: Journal Tags: journal, blog Authors: Walter Fan Summary: Daily minute
Task
quick test as the following steps pelican content cd output python -m SimpleHTTPServer
access http://localhost:8000
Tips
- edit pelicanconf.py to set RELATIVE_URLS = True for local testing
相關文章
- 三句命令給MacBook安裝oh my zsh 走向高逼格shellMac
- 使用 pelican 和 Github pages 來搭建部落格Github
- Laravel try catchLaravel
- Jumping with Try
- js try catchJS
- My PromisePromise
- MY WEBWeb
- MacBook Pro (2021) vs MacBook Air vs MacBook Pro 全面評測MacAI
- iOS的@try、@catch()iOS
- try mysql5.5.8MySql
- Pelican 入門:一個 Python 靜態網站生成器Python網站
- By My SideIDE
- My new English
- My Heart will go onGo
- It's my life
- It s my life
- my flash websiteWeb
- My New GoalGo
- My Resignation--it is my true resignation letter
- Java 7 Try-With-ResourcesJava
- Java try catch finallyJava
- try-with-resources語法
- C++及Windows異常處理(try,catch; __try,__finally; __try, __except)——一道筆試題引起的探究C++Windows筆試
- Oh, my goddess nyojGo
- My wonderful world of macOSMac
- MY SQL 知識SQL
- My First Blog
- My first blog!
- This is my Load.
- About My Blog
- 蘋果MacBook選購指南,Macbook Air和Pro如何選?蘋果MacAI
- 解析MySQL 配置檔案 my.cnf / my.ini 區別MySql
- Java趣味分享:try/finallyJava
- c++ try catch 問題C++
- 蘋果新MacBook Air評測,蘋果新MacBook Air好用嗎?蘋果MacAI
- macbook pro破解UltraEditMac
- macbook 安裝 mysqlMacMySql
- MacBook 最佳實踐Mac