헤더에 아이콘과 텍스트 링크를 추가하려고 Theme Component를 사용 중입니다.
아래 코드를 사용하여 아이콘을 추가하는 데는 성공했습니다:
const { iconNode } = require("discourse-common/lib/icon-library");
api.decorateWidget('header-icons:before', helper => {
return helper.h('li.header-dropdown-toggle', [
helper.h('a.icon', {
href:'/docs',
title: 'Document'
}, iconNode("book")),
]);
});
하지만 아이콘 옆에 Documents URL로 연결되는 텍스트를 추가하는 데 어려움을 겪고 있습니다.
아래와 같이 시도해 보았지만, 텍스트에 링크가 걸리지 않습니다.
api.decorateWidget('header-icons:before', helper => {
return helper.h('li.header-dropdown-toggle', [
helper.h('h3', {
href:'/docs',
title: 'Document'
}, 'Docs'),
]);
무엇이 부족한가요?
또한 아이콘을 헤더의 왼쪽(로고 옆)에 배치할 수 있는 방법이 있나요?
미리 감사합니다.



