RatanShreshtha / DeepThought

A simple blog theme focused on writing powered by Bulma and Zola.
https://deepthought-theme.netlify.app/
MIT License
178 stars 91 forks source link

A lot of things don't work on me (new on Zola) #36

Closed rempas closed 2 years ago

rempas commented 3 years ago

Hello! Like I'm saying, I'm new to Zola and I really liked this theme and wanted to make my blog with it. Thank you for your amazing work!!!

I'm trying to get started, I have read the zola overview till the point to get started with my new project and then the installing theme section to install the theme just like you said. I also added a variable to the config.toml file to set the theme to DeepThought. Now I'm going to tell you exactly the steps I followed and the results I had so you can help me.

PROBLEM ONE After installing the theme, I added the following variable in my config.toml file: theme = "DeepThought" just like you are saying in the README.md. After that I'm getting the following error message:

Error: Failed to render section '/home/rempas/Projects/Programming/Web/myblog/content/_index.md'
Reason: Failed to render 'index.html' (error happened in a parent template)
Reason: Variable `config.extra.navbar_items` not found in context while rendering 'index.html'

To fix that, I tried to copy the config.toml which is inside the theme to my project root directory. Additionally I added the variable to change the theme and now it works. The thing is. Is this suppose to be the case? Should I get the theme config? I'm asking because you don't said that in the README.md neither it is mentioned in the zola docs

PROBLEM TWO The content is not showing up. While the templates and static directories didn't had to get copied to my root project directory to make them work, the content does not show up. I suppose this how Zola treats that posts. So is it safe to delete the content directory from the root directory of the DeepThought theme and just add posts in mine?

PROBLEM THREE The search doesn't work. Do you have any idea why this is happening? I suppose it's probably a js thing but I have no idea...

joesan commented 3 years ago

You are not alone. I have been facing the same problems. Somehow copying the theme as a whole project into the themes directory does not work or is some documentation missing that tells us how to configure this.

Have a look at the issue that I raised here: https://github.com/getzola/zola/issues/1623

rempas commented 3 years ago

@joesan Hi and sorry for the late answer. So I added the navbar_items undert the [extra] block and now the config works. However, now when I'm trying to either copy or move the contents from inside the DeepThought directory to my project root directory, I'm getting the following error message:

Error: Failed to render page '/home/rempas/Projects/Programming/Web/myblog/content/posts/post-10.md'
Reason: Failed to render 'page.html'
Reason: Function call 'get_taxonomy_url' failed
Reason: `get_taxonomy_url` received an unknown taxonomy as kind: categories

What's the progress you have made? Did you had this error yet?

joesan commented 3 years ago

@rempas It is the same error that even I got stuck with. Not sure how to progress!

rempas commented 3 years ago

Understand, thanks a lot for your time!

joesan commented 3 years ago

Is there a resolution? How to fix this?

rempas commented 3 years ago

Oh, no there is not. At least I haven't found one yet. I would have let you know differently of course. The truth is that at this point, I can't wait until (and if they do at all cause I don't see it coming) the developers support us so probably I'll go back on Hugo. So same cause Zola seems awesome. I'll leave the issue open tho in case someone sees and fixes it in the future. Good luck!

RatanShreshtha commented 3 years ago

New version of Zola is breaking few things as configs are changed I am working on fixing these in https://github.com/RatanShreshtha/DeepThought/tree/new-zola-version branch but so far few things are still breaking.

joesan commented 3 years ago

@rempas Even I was considering using Hugo. Might give it a try as well.

joesan commented 3 years ago

@rempas Even I was considering using Hugo. Might give it a try as well.

rempas commented 3 years ago

New version of Zola is breaking few things as configs are changed I am working on fixing these in https://github.com/RatanShreshtha/DeepThought/tree/new-zola-version branch but so far few things are still breaking.

Oh!!! That's a nice shift! So it's a Zola thing after all... Thanks a lot for your work! If that's the case then I'm sticking around!

EDIT: Also do you think that we should close the issue now that you are aware of that? If yes then go ahead and close it!

AlexMikhalev commented 2 years ago

I switched from Hugo to zola - grass is not greener there :) and DeepThought theme has everything I need.

joesan commented 2 years ago

Any updates on this issue? If you could point out where to look and what needs to be fixed, I can give it a try.

AlexMikhalev commented 2 years ago

Works for me on 0.14 zola with deep thought theme as sub module. Be careful with config.toml - check out theme config and copy as needed.

joesan commented 2 years ago

@rempas Did it work out for you? I moved over my content to Hugo as I came across a theme that contained most of the features that I was in need of.

rempas commented 2 years ago

@joesan Didn't tried it to tell you the truth. I left everything since 3 months ago and I just happened that I came back searching for new static site generators and I found out about plenti and verless and they both seem great but I don't know which one to choose between them...

AlexMikhalev commented 2 years ago

This one.

rempas commented 2 years ago

@AlexMikhalev Does this go on me? lol

RatanShreshtha commented 2 years ago

Everything should work fine now