{"id":19806625,"url":"https://github.com/timnew/hexo-tag-codepen","last_synced_at":"2025-05-01T07:30:58.135Z","repository":{"id":19774369,"uuid":"23032703","full_name":"timnew/hexo-tag-codepen","owner":"timnew","description":"Hexo tag to embed code snippet from codepen.io","archived":false,"fork":false,"pushed_at":"2016-04-13T16:33:40.000Z","size":9,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T15:20:54.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/timnew/hexo-tag-codepen","language":"JavaScript","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/timnew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T03:51:25.000Z","updated_at":"2023-03-15T08:08:11.000Z","dependencies_parsed_at":"2022-07-23T13:47:50.055Z","dependency_job_id":null,"html_url":"https://github.com/timnew/hexo-tag-codepen","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/timnew%2Fhexo-tag-codepen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timnew%2Fhexo-tag-codepen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timnew%2Fhexo-tag-codepen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timnew%2Fhexo-tag-codepen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timnew","download_url":"https://codeload.github.com/timnew/hexo-tag-codepen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251840159,"owners_count":21652292,"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-11-12T09:08:01.924Z","updated_at":"2025-05-01T07:30:57.912Z","avatar_url":"https://github.com/timnew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"hexo-tag-codepen [![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url]\n================\n\n\u003e [Hexo] tag to embed code snippet from [CodePen]\n\n## Install\n\nInstall using [npm][npm-url].\n\n    $ npm install hexo-tag-codepen --save\n\n## Usage\n\nCreate [Embedded Pen] with following syntax:\n\n```\n  {% codepen userId|anonymous|anon slugHash theme [defaultTab [height [width]]] %}\n```\n## How to get arguments from CodePen embed\n\nThis is something generated by `CodePen`:\n```html\n\u003cp data-height=\"257\" data-theme-id=\"7928\" data-slug-hash=\"cGEqB\" data-default-tab=\"result\" class='codepen'\u003eSee the Pen \u003ca href='http://codepen.io/timnew/pen/cGEqB/'\u003ecGEqB\u003c/a\u003e by TimNew (\u003ca href='http://codepen.io/timnew'\u003e@timnew\u003c/a\u003e) on \u003ca href='http://codepen.io'\u003eCodePen\u003c/a\u003e.\u003c/p\u003e\n\u003cscript async src=\"//codepen.io/assets/embed/ei.js\"\u003e\u003c/script\u003e\n```\nYou can extract required arguments:\n\nField      | Value\n-----------|--------\nuserId     | timnew  \nslugHash   | cGEqB  \n theme     | 7928  \ndefaultTab | result  \nheight     | 257  \nwidth      | This value should be adjusted according to your blog theme, by default it is `100%`\n\n## License\nMIT\n\n[![NPM downloads][npm-downloads]][npm-url]\n\n[homepage]: https://github.com/timnew/hexo-tag-codepen\n\n[npm-url]: https://npmjs.org/package/hexo-tag-codepen\n[npm-image]: http://img.shields.io/npm/v/hexo-tag-codepen.svg?style=flat\n[npm-downloads]: http://img.shields.io/npm/dm/hexo-tag-codepen.svg?style=flat\n\n[depstat-url]: https://gemnasium.com/timnew/hexo-tag-codepen\n[depstat-image]: http://img.shields.io/gemnasium/timnew/hexo-tag-codepen.svg?style=flat\n\n[Hexo]: http://hexo.io/\n[CodePen]: http://codepen.io/\n[Embedded Pen]: http://blog.codepen.io/documentation/features/embedded-pens/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimnew%2Fhexo-tag-codepen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimnew%2Fhexo-tag-codepen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimnew%2Fhexo-tag-codepen/lists"}