ydoc
Version:
基于 Markdown 的静态站点生成工具
10 lines • 348 B
JSX
<a href={relePath(props.distPath, "index.html")} target="_self">
{
props.nav.logo ? <img className="logo" width="36"
src={relePath(props.distPath, props.nav.logo)}
srcSet={relePath(props.distPath, props.nav.logo).replace('@1x', '@2x') + ' 2x'} /> : null
}
{
props.nav.title ? <h6 className="name">{props.nav.title}</h6> : null
}
</a>