-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
86 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: CMS Icon | ||
--- | ||
|
||
Render an icon using FontAwesome, will auto-load the library if necessary. | ||
If a "brand" icon is used, the brand library will be loaded. | ||
|
||
**Parameters** | ||
|
||
|
||
| Parameter | Required | Example | Description | | ||
|-----------|----------|----------------|---------------------------------------| | ||
| icon | yes | "user, gitlab" | Any valid icon present in FontAwesome | | ||
|
||
**Example** | ||
|
||
```.html | ||
<cms-icon icon="gitlab"/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Mastodon Share Button | ||
--- | ||
|
||
Enables rendering of a mastodon share button on pages. Will allow the user to enter their instance URL. | ||
|
||
**Parameters** | ||
|
||
At the moment no parameters are configurable | ||
|
||
**Example** | ||
|
||
```.html | ||
<cms-mastodon-share href="#" class="mastodon-share-button"> | ||
<cms-icon icon="mastodon"/> | ||
Share on Mastodon | ||
</cms-mastodon-share> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: CMS Page List | ||
--- | ||
|
||
Render a list of pages which match given parameters. | ||
|
||
**Parameters** | ||
|
||
| Parameter | Required | Example | Description | | ||
|-----------|----------|------------------------|---------------------------------------------------------------------| | ||
| type | yes | "posts,pages,etc" | Any valid content type defined on your site | | ||
| layout | no | "post-list" | Layout to use for rendering content, useful for controlling UX | | ||
| link | no | "^posts/subproject/.+" | Regex or regular string to match, will only include matchings files | | ||
| sort | no | "datetime-r" | Sort results by a specific key | | ||
| limit | no | 5 | Limit the number of results returned | | ||
| filter-* | no | "filter-tag" | Filter results by a specific key | | ||
|
||
**Example** | ||
|
||
```.html | ||
<cms-pagelist type="pages" layout="page-list" link="pages/games/" sort="title" limit="5"> | ||
Loading Content... | ||
</cms-pagelist> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: CMS Search Input | ||
--- | ||
|
||
Provides support for a search box on the site | ||
|
||
**Parameters** | ||
|
||
At the moment no parameters are configurable | ||
|
||
**Example** | ||
|
||
```.html | ||
<cms-search type="search" placeholder="Search Site"/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters