{"id":16980267,"url":"https://github.com/jaygooby/jekyll-permalink-for-fenced-code-blocks","last_synced_at":"2026-05-20T10:16:49.520Z","repository":{"id":66731892,"uuid":"340902381","full_name":"jaygooby/jekyll-permalink-for-fenced-code-blocks","owner":"jaygooby","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-21T13:33:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-26T17:33:39.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaygooby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-21T13:00:46.000Z","updated_at":"2021-02-21T13:33:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7bee181-cd88-4008-8fce-6f4c33c42253","html_url":"https://github.com/jaygooby/jekyll-permalink-for-fenced-code-blocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaygooby%2Fjekyll-permalink-for-fenced-code-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaygooby%2Fjekyll-permalink-for-fenced-code-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaygooby%2Fjekyll-permalink-for-fenced-code-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaygooby%2Fjekyll-permalink-for-fenced-code-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaygooby","download_url":"https://codeload.github.com/jaygooby/jekyll-permalink-for-fenced-code-blocks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880658,"owners_count":20525515,"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":[],"created_at":"2024-10-14T01:50:45.529Z","updated_at":"2026-05-20T10:16:44.484Z","avatar_url":"https://github.com/jaygooby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nAdds unique IDs to each fenced code block, so\n\n````\n```\necho \"wat\"\n```\n````\n\nwill render in html as \n\n```\n\u003ccode id=\"code-1\"\u003e\necho \"wat\"\n\u003c/code\u003e\n```\n\nAnd then you can link to it using `\u003ca href=\"#code-1\"\u003e` or add a [ClipboardJS](https://clipboardjs.com) hook using the `#code-1` ID attribute.\n\n# Usage\n\nDrop `permalink-for-fenced-code-blocks.rb` into your Jekyll `_plugins` folder. By default, you'll also get a `\u003cbutton\u003e` element for each code block, that looks like:\n\n```\n\u003cbutton class=\"copy-code\" data-clipboard-target=\"#code-1\"\u003ecopy to clipboard\u003c/button\u003e\n```\n\nwhich you can hook up with [ClipboardJS](https://clipboardjs.com/#usage). If you don't want this `button` element, start Jekyll like this:\n\n```\nNO_COPY_BUTTON=1 jekyll serve -w\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaygooby%2Fjekyll-permalink-for-fenced-code-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaygooby%2Fjekyll-permalink-for-fenced-code-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaygooby%2Fjekyll-permalink-for-fenced-code-blocks/lists"}