Usa decorateWidget per aggiungere un link di testo all'header

Nel tuo esempio, devi inserire il tuo testo qui:

helper.h('a.icon', {
    href:'/docs',
    title: 'Documento'
}, ["test", iconNode("book")]),

Dovrai regolare il CSS sul link.

Ad esempio:

padding-inline-end: 2em;
justify-content: space-between;
color: currentcolor;

chrome_Tk18DUhJQQ

Se intendi a destra:, puoi provare:

api.decorateWidget('home-logo:after', helper => {
    return helper.h('div.d-header-icons', [
        helper.h('a.icon.btn-flat.doc', {
            href:'/docs',
            title: 'Documento'
        }, [iconNode("book"), "Doc"]),
    ]);
});
.d-header-icons .icon.doc {
    width: auto;
    gap: 0.5em;
    margin-inline: 1em;

    & .d-icon {
        width: 1em;
    }
}

L’ho testato velocemente. Potresti riscontrare qualche stranezza, ma dovresti cogliere l’idea generale!