getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
71 stars 51 forks source link

comments helper #150

Open augcros opened 6 years ago

augcros commented 6 years ago

I have installed nikola, and have my blog site up and running, but we cannot get the comments to work appropriately, and looking through all of the templates and css and everything, we cannot find comments_helper.tmpl. Is there a trick to getting this? We have not found it anywhere in your sourcecodes? I am using the srcco.de theme

ralsina commented 6 years ago

The trick is that themes inherit each other. So a template may be in the theme, or on its parent, or its grandparent and so on.

To get a copy to play with do this:

nikola theme -c comments_helper.tmpl

Kwpolska commented 6 years ago

You don't need (even don't want) to edit the template. Make sure you've got the correct config, that the code is generated, and that you are not blocking the necessary external resources.

-- Chris Warrick https://chriswarrick.com/

On Tue, Apr 24, 2018, 15:21 Roberto Alsina notifications@github.com wrote:

Closed #150 https://github.com/getnikola/nikola-themes/issues/150.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola-themes/issues/150#event-1591579292, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT-mxa0g5TP2oDWhhx-njXqO-DTBGArks5trybNgaJpZM4Tg2b5 .

augcros commented 6 years ago

Hey, so i double checked the demo site, and the comments are working the same way that they are working on my site, which is to say, that on the main page, you can see there is a spot for comments, but when you click that link, it takes you to the post and there are no comments. I'm going to check the parent/grandparent theme, but I'm not really sure what I'm looking for as this is literally my first time doing any thing like this.

aug

On Tue, Apr 24, 2018 at 9:21 AM, Roberto Alsina notifications@github.com wrote:

The trick is that themes inherit each other. So a template may be in the theme, or on its parent, or its grandparent and so on.

To get a copy to play with do this:

nikola theme -c comments_helper.tmpl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola-themes/issues/150#issuecomment-383927816, or mute the thread https://github.com/notifications/unsubscribe-auth/AkyhsuZfyZjzofddRMGF2Jd-AuJDA-fZks5trybNgaJpZM4Tg2b5 .

ralsina commented 6 years ago

What theme is it?

augcros commented 6 years ago

Source code theme. It looks like the parent theme runs in version 8 of Nikola, which my Linux computer doesn't support. That may be the problem

On Apr 24, 2018 1:09 PM, "Roberto Alsina" notifications@github.com wrote:

What theme is it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola-themes/issues/150#issuecomment-384008943, or mute the thread https://github.com/notifications/unsubscribe-auth/Akyhsic9q4BVnUZwAa2j_vhPRr47sKYtks5tr1w4gaJpZM4Tg2b5 .

augcros commented 6 years ago

We found the problem. It's in the post.tmpl file.

It was missing this piece at the end of the file: {{ comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path) }}

I don't know how to submit a patch.... so here you go :)

aug

On Tue, Apr 24, 2018 at 1:11 PM, August Crosby augcrosby1985@gmail.com wrote:

Source code theme. It looks like the parent theme runs in version 8 of Nikola, which my Linux computer doesn't support. That may be the problem

On Apr 24, 2018 1:09 PM, "Roberto Alsina" notifications@github.com wrote:

What theme is it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola-themes/issues/150#issuecomment-384008943, or mute the thread https://github.com/notifications/unsubscribe-auth/Akyhsic9q4BVnUZwAa2j_vhPRr47sKYtks5tr1w4gaJpZM4Tg2b5 .

augcros commented 6 years ago

Source code theme. It looks like the parent theme runs in version 8 of Nikola, which my Linux computer doesn't support. That may be the problem

We found the problem. It's in the post.tmpl file.

It was missing this piece at the end of the file: {{ comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path) }}

I don't know how to submit a patch.... so here you go :)

aug

On Tue, Apr 24, 2018 at 1:09 PM, Roberto Alsina notifications@github.com wrote:

What theme is it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola-themes/issues/150#issuecomment-384008943, or mute the thread https://github.com/notifications/unsubscribe-auth/Akyhsic9q4BVnUZwAa2j_vhPRr47sKYtks5tr1w4gaJpZM4Tg2b5 .

ralsina commented 6 years ago

Thanks @augcros! I will see if I can add it.