shi*_*ing 5 python python-2.7 python-3.4 pelican
我正在为我的博客使用 pelican 静态站点生成器,我使用正确,但奇怪的是我发现.md文章没有编译,它给我抛出了这些奇怪的错误。
我查看了我的文章页面,一切都很好,这是我的文章标题
Title: some title
slug: some-title
Date: 2016-11-19
Category: code
Tags: python, python
Authors: nix1947(Manoj)
Run Code Online (Sandbox Code Playgroud)
我找不到,为什么我会收到此错误?
我查看了该 pelicanconf.py文件,特别是日期部分,一切正常,这是我的 pelicanconf.py 文件的日期部分
DATE_FORMAT = { 'en': '%d %m %Y'}
DEFAULT_DATE_FORMAT = '%d %m %Y'
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
ARTICLE_URL = '{date:%Y}/{date:%-m}/{date:%-d}/{slug}/'
ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html'
Run Code Online (Sandbox Code Playgroud)
这些是当我尝试编译文章时 pelican 抛出的一堆错误。
(nix1947blog)nix1947@nix1947:~/projects/nix1947blog/content/blog$
-> Modified: content. re-generating...
ERROR: Skipping blog/output/tags.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/categories.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/archives.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/Updating-linux-packages-from-particular-repositories.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/heroku-rails-cheatsheet.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/Data structures and algorithms using python.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/rails-5-cheatsheet.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/authors.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/index.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/Web-scraping-using-python-3.5.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/hello-world.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/installing-latex-in-linux.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/author/nix1947.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/author/nix1947manoj-gautam.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/category/sysadmin.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/category/code.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/category/documentation.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/ruby.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/linux.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/python.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/programming.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/documentation.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/system-admininstration.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/rails.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/publishing.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/blog.html: could not find information about 'NameError: date'
ERROR: Skipping blog/output/tag/heroku.html: could not find information about 'NameError: date'
Done: Processed 6 articles, 0 drafts, 0 pages and 0 hidden pages in 0.32 seconds.
Run Code Online (Sandbox Code Playgroud)
你的.md文件没问题。.html您从中的文件中收到错误content,这看起来像先前运行的输出pelican:
ERROR: Skipping blog/output/tags.html: could not find information about 'NameError: date'
Run Code Online (Sandbox Code Playgroud)
删除文件夹blog/output内的文件夹content,错误就会消失。
| 归档时间: |
|
| 查看次数: |
1621 次 |
| 最近记录: |