-
Notifications
You must be signed in to change notification settings - Fork 12
Failed to generate blog.html #1
Comments
I figured it out. After I add the following settings to my pelicanconf.py, it works, cool!
|
看了你的个人信息,但是考虑到可能有非中文技能的人看,所以我还是用英语吧 I'm seriously considering writing a readme file for the theme. =_= There are two things have to be set in the pelicanconf.py for correctly generate the output file.
TEMPLATE_PAGES = {'blog.html': 'blog.html'}
PAGINATED_DIRECT_TEMPLATES = ('blog-index',)
DIRECT_TEMPLATES = ('categories', 'index', 'blog-index', 'blog') Also, I have to mention that the blog-index is for the index file for your blog, and will be loaded by ajax to reduce the init load time in plan. Since I'm suck at using git, I cannot find out a proper work flow for creating the pull request, I won't pull the theme into upstream until I figure it out. 多谢关注!!我也考虑要写个README了。 |
=_= |
Hi, I would like to congratulate you also for this awesome theme. Unfortunately, I have similar issues getting the blog.html page working. In particular, I get two issues when I follow your recommendations:
How can I reconfigure the paths of these two links? I would really appreciate appreciate your help with these issues. Cheers Andy |
Hi, Andy, I cannot recreate the first problem and if you are not able to connect to bootstrapcdn. you can google these two files and find other hosts, or you can download them and upload somewhere. them point the link to them. |
Ran into this problem as well. Using python 3.4, pelican 3.5. my
|
dude, you forgot this:
|
If i add |
missed blog-index in it? |
On a fresh clone of the template if I use this configuration
gets me
I made a fresh clone from the repository to make sure, here's a tree of my clone just in case.
|
This is kind of weird, I've checked the config from a fresh clone of the template and everything looked good. How about using my config example in README & see what's the result? @rawrgulmuffins |
I'm a bad person but I fixed this somehow and didn't report it. =( I'll try to spend some time re-tracing my tracks. |
we all sometimes forgot something ^_^ |
Your theme is awesome, thanks for sharing it.
However I failed to generate the blog.html. It doesn't exist in the output directory. index2.html index3.html ... exist and I think they should not.
Maybe I need to setup something in my pelicanconf.py but I am not sure which variables I need to set.
I tried to add 'blog' to DIRECT_TEMPLATES, then I got "CRITICAL: slice indices must be integers or None or have an index method".
The text was updated successfully, but these errors were encountered: