-
Notifications
You must be signed in to change notification settings - Fork 20
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
Links in menu, posts sorting, tag based parsing and rules #55
Comments
hi hi @MorphicResonance, sorry it took me quite a bit to get to this issue. here goes my attempt to answer your questions:
after parsing each Org-Mode file, weblorg attaches the <li><a href="{{ url_for("index") }}">home</a></li>
<li{% if route.name == "docs" %} class="active"{% endif %}>
<a href="{{ url_for("docs", slug="index") }}">documentation</a>
</li>
<li{% if route.name == "api" %} class="active"{% endif %}>
<a href="{{ url_for("api") }}">api reference</a>
</li> this is an excerpt from the layout file weblorg's website.
I tried to get ready to answer this question by publishing some preliminary documentation on how aggregation functions work.
That said, the short answer to this question is no. There is no aggregation function that sorts posts in any way that's different from the timestamp. That is indeed something wanted and any insights in how we could get a nice API to allow that to happen would be very much appreciated. If you allow me some rambling: Sorting might be too special of a situation to the point that it'd be nice to decouple it from the aggregation. if that's the case, meaning that they're really actually better to be handled together, maybe sorting still needs its own set of parameters instead of just relying on new aggregate functions being written that don't really change aggregation but just sorting. (this is what we have right now, we have aggregate functions with and without the suffix
this question reminds me of the discussion in #18. this feels like perfect use-case for
That sounds very useful, and I think it'd be a good template filter to add to templatel even. (I bet there's something along those lines in jinja that we can get the inspiration from)
hmm, I feel like this can be achieved with a custom |
Template question. How to edit template to not include link into site menu to the same page. For example on the site of weblorg we go on the page "Blogging". Into the footer of this page we see active link to the same "Blogging". I want to make such links inactive.
Post sorting. Is there way to make sorting of posts not just as datestamps but under other conditions. Be able to pin one post higher than others.
Is there a plan to make publishing with weblorg from defined node of any .org file. I mean that some function may parse .org files search for tagged nodes (as :blog: or :publish: , something like this) and create .org files for weblorg. Then run standart publishing procedure.
This can be developed with cascade of functions into Elisp . For me this can be really realized with python script Orgparse.
Do you plan to develop an autoextraction of first n-words of the post (anounce) for index page of the blog?
Idea of tags as rules for the choice of template(route). If I have one file tagged as :blog: and other tagges as :homepage: being in one folder they will be processed with different templates. So users be able to have not only flat real site structure but also the same flat/virtual on desktop.
The text was updated successfully, but these errors were encountered: