title |
---|
Quickstart |
<!-- index.html -->
<link rel="stylesheet" href="https://cwgi-cli.jw1.dev/style.css">
<div id="cwgi_box"></div>
<script src="https://cwgi-cli.jw1.dev/cwgi.iife.js"></script>
// index.js
_CWGI.init()
ES module version
<!-- index.html -->
<link rel="stylesheet" href="https://cwgi-cli.jw1.dev/style.css">
<div id="cwgi_box"></div>
// index.js
// you can use it just like this or download it to your project and import it
import {init} from 'https://cwgi-cli.jw1.dev/cwgi.js'
init()
- GitHub App - REQUIRED, you need a GitHub App to authenticate users
- Server side - Optional, you need a back-end to handle GitHub API requests
- Client side - PARTIAL, you need to include the script and style in your blog