Closed lakhman closed 2 years ago
or, could we just have it so we can render html in the :format:
.
:format: {title} by {author} on {date} {tags}
:format: <span class="title">{title}</span> by {author} on {date} {tags}
I would prefer the template proposal. Keep the data & format/style separate.
--albert An iPhone is great, but for typing mail
Op 24 mei 2016 om 20:46 heeft lakhman notifications@github.com het volgende geschreven:
or, could we just have it so we can render html in the :format:.
:format: {title} by {author} on {date} {tags} :format: <span class="title">{title}</span> by {author} on {date} {tags}
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub
+1 on this. Just ran into this very issue. @lakhman is the work you did to make this into an external plugin go anywhere? Seems like it shouldn't be hard to hook into the doctree-resolved
event and update/add the node outside of ablog if needed.
@ericholscher No, I'm sorry to say I abandoned this library in favour of tinkerer. @Maintainer please close this issue if you feel it's irrelevant.
I still have a few issues with tinkerer and am planning to write my own blogging engine merging the good parts of ablog and tinkerer. It'll probably be a few months still I get around to this tho.
Ablog and Tinkerer are very hackable (they're based of Sphinx), you should be able to customize it (with a little learning) very easily to do whatever you want.
Hey, I'm using this for my blog, it's awesome, I even managed to write a plugin which inserts a "bar" under the first header of each section with the date, tags and author.
I wanted to further style the
postlist
directive, I noticed everything is generated via nodes, could we perhaps replace the node generation with rendering a jinja template?Like all other templates, this one should be able to be overridden by the user, we'd use this for the homepage most probably, so it would be nice to be able to style it as the user wishes.
https://github.com/abakan/ablog/blob/devel/ablog/post.py#L370
This is a snippet of my plugin, inside of creating new nodes, just render a template.
Could this be done?
Thanks! Awesome project! - I love sphinx! I learned a lot from this extension. Thanks! 👍