You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
**This README.md file should be modified to describe the features, installation, configuration, and general usage of this plugin.**
4
4
5
-
The **Codepen Embed** Plugin is for [Grav CMS](http://github.com/getgrav/grav). easily embed codepens from markdown
5
+
The **Codepen Embed** Plugin is for [Grav CMS](http://github.com/getgrav/grav). You can use it to easily embed 'pens' from codepen.io right from your markdown editor.
6
6
7
7
## Installation
8
8
@@ -23,8 +23,9 @@ To install this plugin, just download the zip version of this repository and unz
23
23
You should now have all the plugin files under
24
24
25
25
/your/site/grav/user/plugins/codepen-embed
26
-
27
-
> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav) and the [Error](https://github.com/getgrav/grav-plugin-error) and [Problems](https://github.com/getgrav/grav-plugin-problems) to operate.
26
+
27
+
> NOTE: This plugin is a modular component for Grav which requires [Grav](http://github.com/getgrav/grav) and the [Shortcode Core](https://github.com/getgrav/grav-plugin-shortcode-core)
28
+
28
29
29
30
## Configuration
30
31
@@ -38,7 +39,21 @@ enabled: true
38
39
39
40
## Usage
40
41
41
-
**Describe how to use the plugin.**
42
+
```markdown
43
+
[codepen id=CODEPEN_ID]
44
+
```
45
+
46
+
You can use these parameters (only id is required)
47
+
| Parameter | Default Value | Description |
48
+
| ------------- | ------------- | ------------- |
49
+
| id | The codepen from the url. For example on this pen: https://codepen.io/akm2/pen/rHIsa the id would be rHIsa |
50
+
| user | required, no default |Include the pen user in the markup |
51
+
| title | default: '' | Include the codepen |
52
+
| preview | default: true. | Show preview of the pen once embedded |
53
+
| height | default: 265 | Height of the pen embed |
54
+
| defaultTab | default: js,result | What tabs should be shown by default |
55
+
| content | default:'' | For SEO purposes you can also include content that will be removed once the pen has been embeded. |
0 commit comments