{"id":23879551,"url":"https://github.com/ohseesoftware/oh-see-gists","last_synced_at":"2025-08-24T14:39:01.846Z","repository":{"id":49494125,"uuid":"264823437","full_name":"ohseesoftware/oh-see-gists","owner":"ohseesoftware","description":"A Statamic add-on to use GitHub's Gists to host code blocks.","archived":false,"fork":false,"pushed_at":"2023-08-19T17:18:00.000Z","size":155,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T19:51:20.129Z","etag":null,"topics":["gists","statamic","statamic-addon","statamic-v3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohseesoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-18T04:12:29.000Z","updated_at":"2023-05-10T16:22:31.000Z","dependencies_parsed_at":"2022-08-29T21:11:43.321Z","dependency_job_id":null,"html_url":"https://github.com/ohseesoftware/oh-see-gists","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohseesoftware%2Foh-see-gists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohseesoftware%2Foh-see-gists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohseesoftware%2Foh-see-gists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohseesoftware%2Foh-see-gists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohseesoftware","download_url":"https://codeload.github.com/ohseesoftware/oh-see-gists/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248080480,"owners_count":21044509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gists","statamic","statamic-addon","statamic-v3"],"created_at":"2025-01-03T23:17:58.852Z","updated_at":"2025-04-09T17:44:43.455Z","avatar_url":"https://github.com/ohseesoftware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh See Gists\n\n[![Current Release](https://img.shields.io/github/release/ohseesoftware/oh-see-gists.svg?style=flat-square)](https://github.com/ohseesoftware/oh-see-gists/releases)\n![Build Status Badge](https://github.com/ohseesoftware/oh-see-gists/workflows/Build/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/ohseesoftware/oh-see-gists/badge.svg?branch=master)](https://coveralls.io/github/ohseesoftware/oh-see-gists?branch=master)\n[![Maintainability Score](https://img.shields.io/codeclimate/maintainability/ohseesoftware/oh-see-gists.svg?style=flat-square)](https://codeclimate.com/github/ohseesoftware/oh-see-gists)\n[![Downloads](https://img.shields.io/packagist/dt/ohseesoftware/oh-see-gists.svg?style=flat-square)](https://packagist.org/packages/ohseesoftware/oh-see-gists)\n[![MIT License](https://img.shields.io/github/license/ohseesoftware/oh-see-gists.svg?style=flat-square)](https://github.com/ohseesoftware/oh-see-gists/blob/master/LICENSE)\n\nUse GitHub Gists to embed your code snippets on your site. Example: https://ohseemedia.com/posts/hooks-can-only-be-called-inside-the-body-of-a-function-component-reactjs-error/\n\n## Installation\n\nInstall the add-on:\n\n`composer require ohseesoftware/oh-see-gists`\n\nPublish the add-on's assets:\n\n`php artisan vendor:publish --tag=oh-see-gists`\n\nThis will publish:\n\n- a config file for the GitHub API\n- views in the `resources/views` directory\n- fieldsets in the `resources/fieldsets` directory\n\n## Usage\n\n### Add your GitHub token to your .env file\n\nYou'll need to create a new personal access token. You can do so here: [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new).\n\nThe token only needs the `gist` scope.\n\nAdd the token as `OH_SEE_GISTS_GITHUB_TOKEN` in your `.env` file.\n\n### Add the fieldset to your blueprint(s)\n\nThe fieldset that will be published is named `gist_block`. You will need to update your blueprints to reference the fieldset wherever you want it to be used. As an example in bard:\n\n```yaml\ntype: bard\nsets:\n  gist_content:\n    display: Gist\n    fields:\n      - import: gist_block\n```\n\n### Naming\n\nThere are two **very important** naming conventions you have to follow:\n\n- The `gist_content` name for the fieldset is **very** important. The add-on references this key so you cannot change it.\n- Your bard block has to be named `content` for the add-on to save to your GitHub Gists. Otherwise, you will be just creating code blocks on your Statamic site.\n\n### Use the partial in your templates\n\nThe add-on publishes a partial for you to use in your templates to render the Gists. You can use it like so:\n\n\u003c!-- prettier-ignore-start --\u003e\n```html\n{{ bard_content }}\n    {{ if type == \"gist_content\" }}\n        {{ partial src=\"partials/gist_content\" }}\n    {{ /if }}\n{{ /bard_content }}\n```\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohseesoftware%2Foh-see-gists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohseesoftware%2Foh-see-gists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohseesoftware%2Foh-see-gists/lists"}