في مثالك، تحتاج إلى إدراج النص الخاص بك هنا:
helper.h('a.icon', {
href:'/docs',
title: 'Document'
}, ["test", iconNode("book")]),
ستحتاج إلى ضبط CSS على الرابط.
على سبيل المثال:
padding-inline-end: 2em;
justify-content: space-between;
color: currentcolor;

إذا كنت تقصد على اليمين:، يمكنك تجربة:
api.decorateWidget('home-logo:after', helper => {
return helper.h('div.d-header-icons', [
helper.h('a.icon.btn-flat.doc', {
href:'/docs',
title: 'Document'
}, [iconNode("book"), "Doc"]),
]);
});
.d-header-icons .icon.doc {
width: auto;
gap: 0.5em;
margin-inline: 1em;
& .d-icon {
width: 1em;
}
}
لقد اختبرتها بسرعة. قد تواجه بعض المشكلات الغريبة، ولكن يجب أن تحصل على الفكرة العامة!
