-
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.
#134 rename content tags to shortcodes
- Loading branch information
Thorsten Marx
committed
Dec 26, 2023
1 parent
4c1daec
commit 752f914
Showing
13 changed files
with
53 additions
and
53 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Extending | ||
title: Error sending form | ||
template: error.html | ||
menu: | ||
visible: false | ||
|
6 changes: 3 additions & 3 deletions
6
.../hosts/demo/content/content-tags/index.md → ...er/hosts/demo/content/shortcodes/index.md
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
title: Content-Tags | ||
title: Shortcodes | ||
template: start.html | ||
menu: | ||
position: 91 | ||
--- | ||
|
||
## Tags | ||
## Shortcodes | ||
|
||
[[hello name='Thorsten'/]] | ||
|
||
Or call a tag provided by the default theme | ||
Or call a shortcode provided by the default theme | ||
|
||
[[theme_name /]] |
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
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
cms-server/src/main/resources/com/github/thmarx/cms/extensions/system/shortcodes.mjs
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,5 @@ | ||
export const $shortcodes = { | ||
register : (name, fun) => { | ||
extensions.registerShortCode(name, fun) | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
cms-server/src/main/resources/com/github/thmarx/cms/extensions/system/tags.mjs
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { $tags } from 'system/tags.mjs'; | ||
import { $shortcodes } from 'system/shortcodes.mjs'; | ||
|
||
$tags.addTag( | ||
$shortcodes.register( | ||
"theme_name", | ||
(params) => `Hello, I'm your default theme.` | ||
) |