The Tree of Widsdom

智慧の樹

@export: status badge

Type: Agent

This sets the badges that indicate crucial notes’ export status. The two attributes together yield four permutations. These include:

  • Top level notes.
  • Children of blogTopNote.
  • Children of Blog POSTS.
  • Children of Blog PAGES.
  • CSS files.

Each gets its own $Badge as shown here:

<code>$Badge</code> settings for top-level notes.
$Badge settings for top-level notes.

$AgentQuery

($OutlineDepth==1) | ( (descendedFrom("BlogTopNote")|descendedFrom("CSS")) & ($OutlineDepth=2)) | ($Name(parent)=="Blog POSTS") | ($Name(parent)=="Blog PAGES") & !$IsAlias & $Name!="Dashboard" 

$AgentAction

if($HTMLDontExport){if($HTMLExportChildren){$Badge="arrow down"}else{if($Name!=Dashboard){$Badge="label red"}}}else{if($HTMLExportChildren){$Badge="label green"}else{$Badge="arrow up"}}