Socket
Book a DemoInstallSign in
Socket

hexo-tag-codepen

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-tag-codepen

Hexo tag to embed code snippet from codepen.io

0.2.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

hexo-tag-codepen NPM version Dependency Status

Hexo tag to embed code snippet from CodePen

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:

<p data-height="257" data-theme-id="7928" data-slug-hash="cGEqB" data-default-tab="result" class='codepen'>See the Pen <a href='http://codepen.io/timnew/pen/cGEqB/'>cGEqB</a> by TimNew (<a href='http://codepen.io/timnew'>@timnew</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
<script async src="//codepen.io/assets/embed/ei.js"></script>

You can extract required arguments:

FieldValue
userIdtimnew
slugHashcGEqB
theme7928
defaultTabresult
height257
widthThis value should be adjusted according to your blog theme, by default it is 100%

License

MIT

NPM downloads

Keywords

hexo

FAQs

Package last updated on 13 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.