The post is a bit hard to follow and appears to refer ("As you know…") to previous unreferenced discussion (off forum?).
By 'current' can you confirm you are referring to the
current designator, as opposed to a note called 'current'. Over the years I've done a number of very complex exports and have rarely (ever?) needed to use current, which leads me to wonder if that's needed here. Either way, it should resolve to something.
Although
$blogNav is a valid attribute name, I wonder if it is a typo. Nprmal/suggested naming of attributes is to use CamelCase, i.e.
$BlogNav. The two names resolve to different attributes so a mis-cased character would break your export code.
If you are trying to link to a note called 'categories', this would be better syntax:
<a class="blog-nav-item" href="^url("categories")^">Categories</a>Best practice - in terms of helping TB's parser, is that we quote $Path or $Name values but not designators (e.g. 'current'). If $name isn't working as a reference, it may help to use the complete $Path to 'categories'.
"...this markup does not get converted into what I need." This is unclear. Are you saying the ^export^ code isn't being evaluated at all. Do you see:
- The ^code^ being exported verbatim.
- A blank where the code or its output would be.
- Output, but with the wrong/unexpected values.
It would help if you could post what you get and what you expected to get. for instance, you appear to refer to a note called 'categories'. If there is more than one such note (or aliases) TB my point to the first such by $OutlineOrder. Ma,king a reference by $Path rather than $Name should resolve such an issue.
Just going by what you've stated there's little else to infer here. Missing from your post is whether this is code that was working and now doesn't or is new code you're working on. If it was working, it would be useful to know what changed just before the breakage. It would be also useful to see the output or a small TBC illustrating the code in context.
Hope that helps! I'll also move this thread to a more appropriate sub-forum so it gets seen by those look at/versed in export.