Comments and Likes System

This blog uses a free Google Apps Script + Google Sheets backend for post comments and likes.

Files in this repo

One-time setup

  1. Create a Google Sheet with tabs named comments, likes, and optionally summary.
  2. Open Apps Script from the Sheet or a standalone project.
  3. Paste the contents of scripts/comments-webapp.gs into the Apps Script editor.
  4. Set Script Properties:
    • SPREADSHEET_ID = your Google Sheet ID
    • LIKES_SALT = any long random string
  5. Deploy as a web app:
    • Execute as: Me
    • Who has access: Anyone
  6. Copy the web app URL into _config.yml under comments_api_url.

Moderation

Notes