使用Pelican+Github搭建个人博客网站

Posted on 六 09 十月 2021 in Pelican

使用Pelican+Github搭建个人博客网站

(.py39) pro:pelican_site play$ pelican content
WARNING: Docutils has no localization for 'zh'. Using 'en' instead.
WARNING: Watched path does not exist: /Users/play/CODE/pelican_site/content/images
Done: Processed 2 articles, 0 drafts, 0 pages, 0 hidden pages and 0 draft pages in 0.57 seconds.
  • 自动重新加载
(.py39) pro:demo_plugin1 play$ make devserver
"pelican" -lr "/Users/play/CODE/pelican_site/demo_plugin1/content" -o "/Users/play/CODE/pelican_site/demo_plugin1/output" -s "/Users/play/CODE/pelican_site/demo_plugin1/pelicanconf.py" 
  --- AutoReload Mode: Monitoring `content`, `theme` and `settings` for changes. ---
Docutils has no localization for 'zh'. Using 'en' instead.

Serving site at: http://127.0.0.1:8000 - Tap CTRL-C to stop
Watched path does not exist: /Users/play/CODE/pelican_site/demo_plugin1/content/images

-> Modified: settings, content, theme. re-generating...
Done: Processed 2 articles, 0 drafts, 0 pages, 0 hidden pages and 0 draft pages in 0.28 seconds.

#修改后
-> Modified: content. re-generating...
Done: Processed 2 articles, 0 drafts, 0 pages, 0 hidden pages and 0 draft pages in 0.20 seconds.

插件 plugins

  • 文档
    • https://docs.getpelican.com/en/latest/plugins.html
    • https://github.com/getpelican/pelican-plugins
    • https://docs.getpelican.com/en/stable/internals.html
  • 参考