<div class="metadata">
    $if(essay-tags)$
    <div class="meta-row meta-tags">
        $for(essay-tags)$<a class="meta-tag" href="$tag-url$">$tag-name$</a>$endfor$
    </div>
    $endif$
    $if(essay-keywords)$
    <div class="meta-row meta-keywords">
        $for(essay-keywords)$<a class="meta-keyword" href="$kw-url$">$kw-name$</a>$endfor$
    </div>
    $endif$
    $if(abstract)$
    <div class="meta-row meta-description">
        $abstract$
    </div>
    $endif$
    <div class="meta-row meta-authors">
        <span class="meta-label">by</span>$if(poet)$$poet$$else$$for(author-links)$<a href="$author-url$">$author-name$</a>$sep$, $endfor$$endif$
    </div>
    $if(affiliation-links)$
    <div class="meta-row meta-affiliation">
        $for(affiliation-links)$$if(affiliation-url)$<a href="$affiliation-url$">$affiliation-name$</a>$else$$affiliation-name$$endif$$sep$ · $endfor$
    </div>
    $endif$
    $if(status)$
    <div class="meta-row meta-epistemic-strip" data-pagefind-ignore="all">
        $if(overall-score)$<span class="ep-trust" data-ep-term="trust"><span class="ep-score">$overall-score$%</span> trust</span>$endif$
        <span class="ep-status" data-ep-term="status">$status$</span>
        $if(confidence)$<span class="ep-row" data-ep-term="confidence">$confidence$% confidence</span>$endif$
        $if(importance-dots)$<span class="ep-row" data-ep-term="importance"><span class="ep-dots">$importance-dots$</span> importance</span>$endif$
        $if(evidence-dots)$<span class="ep-row" data-ep-term="evidence"><span class="ep-dots">$evidence-dots$</span> evidence quality</span>$endif$
        $if(scope)$<span class="ep-row" data-ep-term="scope">$scope$ scope</span>$endif$
        $if(novelty)$<span class="ep-row" data-ep-term="novelty">$novelty$ novelty</span>$endif$
        $if(practicality)$<span class="ep-row" data-ep-term="practicality">$practicality$ practicality</span>$endif$
    </div>
    $endif$
    <nav class="meta-row meta-pagelinks" aria-label="Page sections">
        $if(version-history-range)$
        <a href="#version-history" class="date-hover"
           data-date-start="$version-history-range-start$"
           $if(version-history-range-end)$data-date-end="$version-history-range-end$"$endif$
           $if(version-history-commits)$data-date-commits="$version-history-commits$"$endif$>$version-history-range$</a>
        $else$
        <a href="#version-history">History</a>
        $endif$
        $if(status)$<a href="#epistemic">Epistemic</a>$endif$
        $if(bibliography)$<a href="#bibliography">Bibliography</a>$endif$
        $if(backlinks)$<a href="#backlinks">Backlinks</a>$endif$
        $if(similar-links)$<a href="#similar-links">Related</a>$endif$
        $if(repository)$<a href="$repository$">Repository</a>$endif$
        $if(preprint)$<a href="$preprint$">Preprint</a>$endif$
    </nav>
</div>
