dezhishen / github-blog-sdk

利用该项目,基于githubpages快速搭建自己的博客

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-blog-sdk

使用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

About

利用该项目,基于githubpages快速搭建自己的博客

License:MIT License


Languages

Language:CSS 79.4%Language:JavaScript 20.6%