https://github.com/statamic/plugin-gist
Statamic Plugin for quick embedding Gists
https://github.com/statamic/plugin-gist
Last synced: 8 months ago
JSON representation
Statamic Plugin for quick embedding Gists
- Host: GitHub
- URL: https://github.com/statamic/plugin-gist
- Owner: statamic
- Created: 2012-07-25T19:49:49.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-01-27T12:40:28.000Z (almost 11 years ago)
- Last Synced: 2025-03-22T04:41:27.907Z (9 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 13
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Statamic Gist Plugin
================================
## Installing
1. Download the zip file (or clone via git) and unzip it or clone the repo into `/_add-ons/`.
2. Ensure the folder name is `gist` (Github timestamps the download folder).
3. Enjoy.
## Usage
Quick embed any [Gist](https://gist.github.com/) with a simple tag. Example:
{{ gist:12345 }}
Longhand format example:
{{ gist id="12345" }}
Where '12345' is the id of the desired gist. That's all there is to it.
To specify a specific file within a gist use the longhand format.
{{ gist id="12345" file="filename.md" }}