使用nodejs
,marked
,github-nodejs-sdk
快速构建blog
cdn
<script src="https://cdn.jsdelivr.net/gh/dezhiShen/github-blog-sdk@tag/dist/index.js"></script>
let sdk = new GithubBlogSdk({
renderContent: (url, html, title) => {
this.renderContent(url, html, title)
},
renderSummary: (url, html) => {
this.renderSummary(url, html)
}
})
sdk.initSdk()
预览: https://dezhishen.github.io/github-blog-sdk/examples/index.html