san-cli-docit-theme
Version:
san-cli-docit-theme 是 [San](https://github.com/baidu/san) CLI 工具中 Markdown 文档建站中的主题模板部分,可以作为[自定义模板](https://ecomfe.github.io/san-cli/)的参考例子。
20 lines (18 loc) • 432 B
JavaScript
/**
* @file content
* @author ksky521
*/
import {Component} from 'san';
export default class Content extends Component {
static template = /* html */ `
<article id="content">
<content/>
<aside class="toc">{{toc.html|raw}}</aside>
</article>
`;
getComponentType(aNode) {
if (aNode.tagName === 'content') {
return this.data.get('content');
}
}
}