* simulating counter macro in property values
@ 2017-07-20 11:52 Matt Price
0 siblings, 0 replies; only message in thread
From: Matt Price @ 2017-07-20 11:52 UTC (permalink / raw)
To: Org Mode
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
I export a series of subtrees to a static website. The subtrees are listed
in a menu that the site generator creates. The position in the menu is
controlled by an org property (":HUGO_MENU_OVERRIDERS: :weight X").
I would really like to automate the "weight" value so that the menu order
reflects the order of subtrees in my source file. I'd also like to keep
some space between the assigned weightings, though that's not really
essential. So essentially I want to be able to write this:
** Some Important Stuff
:PROPERTIES:
:HUGO_MENU_OVERRIDES: (* {{{n}}} 10)
:END:
... and have that lisp expression, AND the counter, evaluated before
export. Obviously this does not work, but is there a way to simulate this
behaviour?
Thanks as always to the community!
matt
[-- Attachment #2: Type: text/html, Size: 984 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-20 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20 11:52 simulating counter macro in property values Matt Price
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).