Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace tag pages? #63

Open
MinchinWeb opened this issue Feb 19, 2016 · 3 comments
Open

Replace tag pages? #63

MinchinWeb opened this issue Feb 19, 2016 · 3 comments

Comments

@MinchinWeb
Copy link
Contributor

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
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Contributor Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants