Get started with gitment CDN

MIT licensed

Gitment is a lightweight library for Git-powered commenting system on static websites.

Tags:
  • comment system
  • GitHub Issues
  • comments
  • github-issues
  • github-blog

Stable version

Copied!

How to start using gitment CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with gitment CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitment/dist/gitment.min.css">
  <script src="https://cdn.cdnhub.io/gitment/0.0.3/gitment.browser.js"></script>
</head>
<body>
  <div id="gitment-container"></div>
  <script>
    gitment.init({
      id: 'gitment-container', // The container ID
      clientID: 'YOUR_GITHUB_CLIENT_ID', // Your GitHub client ID
      clientSecret: 'YOUR_GITHUB_CLIENT_SECRET', // Your GitHub client secret
      repo: 'YOUR_GITHUB_REPO_URL', // The GitHub repository URL
      oauth: { // Optional OAuth configuration
        label: 'Login with GitHub', // Label for the login button
        clientID: 'YOUR_GITHUB_CLIENT_ID',
        clientSecret: 'YOUR_GITHUB_CLIENT_SECRET',
        scope: ['repo']
      }
    }).then(function() {
      console.log('Gitment initialized');
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions