https://github.com/stillat/meerkat-examples
Recipes, examples, and common templates for working with Meerkat for Statamic 2.
https://github.com/stillat/meerkat-examples
Last synced: over 1 year ago
JSON representation
Recipes, examples, and common templates for working with Meerkat for Statamic 2.
- Host: GitHub
- URL: https://github.com/stillat/meerkat-examples
- Owner: Stillat
- License: mit
- Created: 2020-07-07T02:15:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T04:52:27.000Z (about 6 years ago)
- Last Synced: 2025-01-28T21:39:14.332Z (over 1 year ago)
- Language: HTML
- Size: 43.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Meerkat Examples
A place for examples on how to accomplish some cool things with Meerkat.
## Current Examples
### `custom-spam-guard`
An example Statamic 2 and Meerkat addon that demonstrates how to add a new Spam Detector to Meerkat's Spam Guard.
### `editing-comments-inline`
**Important: This example requires Meerkat v1.5.82 for the latest Statamic 2 version**
Demonstrates how to allow authenticated Statamic users to edit their comments from your site's theme. Users will only be able to edit their own comments with this example.
This example modifies the following theme files:
* `js/meerkat-edit-form.js` - Adds the custom logic to edit comments in-line.
* `layouts/default.html` - Adds a CSRF-TOKEN meta tag; includes the Meerkat edit-form JavaScript file, as well as the axios JavaScript library [https://github.com/axios/axios](https://github.com/axios/axios)
* `partials/article-footer.html` - Adds the basic Meerkat comment form, responses list, as well as custom logic to display an Edit Comment button to authenticated Statamic users.