spiroid / pelican-hpstr

Port of jekyll-hpstr-theme to pelican
GNU General Public License v2.0
4 stars 3 forks source link

gettext issue (resolved) + related_posts issues #11

Open Jestre opened 9 years ago

Jestre commented 9 years ago

First, thanks for porting this to Pelican. I was about to do so, when I searched and found yours.

I initially had a problem when trying to rebuild my blog using this theme, for although I had included the Jinja2 i18n line as explained in the example pelicanconf, I had not included the i18n_subsites plugin as I didn't expect to provide translations. After some snooping, I added that plugin to the PLUGINS list and it built fine. I'm not sure if any of the i18n pieces are actually required, but it may help others if a note is placed in the example config.

Now I am having issues with the related_posts plugin. It is working as expected, but when it displays the text of the related post, it displays the HTML of the first part of the post, i.e <p>Some text blah blah. I'm not sure if I am doing something wrong.

And on another note, since I keep the blog related images in a static directory under content, and keep only the blog post related images in the actual content/images directory, I tweaked the include template a bit to allow for more granular control of that location via the pelicanconf. If you are interested, it is in my fork.

Now to figure out how to do the same for the header image in the CSS file.

spiroid commented 9 years ago

@Jestre thanks for that issue.

For the localization issues, i'll make some additional tests and complete the documenation accordingly. I'll trigger you to test it again if you don't mind :)

I'm also going to read your fork's code to see how you tweaked the images location