Install
Install using npm.
$ npm install hexo-tag-codepen --save
Usage
Create Embedded Pen with following syntax:
{% codepen userId|anonymous|anon slugHash theme [defaultTab [height [width]]] %}
How to get arguments from CodePen embed
This is something generated by CodePen
:
See the Pen cGEqB by TimNew (@timnew) on CodePen.
You can extract required arguments:
Field | Value |
---|---|
userId | timnew |
slugHash | cGEqB |
theme | 7928 |
defaultTab | result |
height | 257 |
width | This value should be adjusted according to your blog theme, by default it is 100% |
License
MIT