abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 35 forks source link

Replace tag pages? #63

Open MinchinWeb opened 8 years ago

MinchinWeb commented 8 years ago

Is it possible to define a separate rst file to overwrite the ABlog generated tag page? There was hints in #31 that this might be in the works, but I didn't see what happened in that regard.

abakan-zz commented 8 years ago

With this change, if blog/tag or blog/tag/python is found, ablog won't auto generate those pages.

In your .rst pages with that name, you could use postlist directive with :excerpts: option to generate desired post listing.

Let me know how this works. It would be easy to add an option to turn archive page generation off altogether.

MinchinWeb commented 8 years ago

This looks awesome, thank you. It is taking me longer than I thought to get to testing it, but I will let you know if it's working on me end shortly.

MinchinWeb commented 8 years ago

@abakan I was able to test it and it works awesome. Thank you so much! (I was specifically testing replacing tag pages.)

I was wanting to include post lists in a similar format to the built-in listings, but haven't been able to figure out how to do that. I've been trying to adjust the format option of the postlist directive. I tried using Jinja templates, but the formatter complains ("unknown key" I think is the error), and raw HTML isn't processed either. Any suggestions on how to do this?