From 5db6546b9b192c712bc7c905512c8e3e998c8507 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Sun, 6 Sep 2020 14:15:16 +0200 Subject: shortcode button - link example --- exampleSite/content/shortcodes/button/_index.md | 6 ++++-- layouts/shortcodes/button.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/shortcodes/button/_index.md b/exampleSite/content/shortcodes/button/_index.md index 2d781cd..23d2941 100644 --- a/exampleSite/content/shortcodes/button/_index.md +++ b/exampleSite/content/shortcodes/button/_index.md @@ -12,6 +12,7 @@ Display an actionable button in your page. | Parameter | Default | Description | |:--|:--|:--| | href | "" | The location href to link to | +| ref | "" | The reference of a page to link to | | align | "center" | horizontal align button on page | | theme | `primary` | `default`, `primary` , `success`,`info`,`warning`,`danger` | @@ -26,7 +27,7 @@ The inner text you place in short code will be displayed as the _button text_ {{}} Danger ! {{}} {{}} Dark ! {{}} {{}} Light ! {{}} - {{}} Secondary{{}} + {{}} See page **columns**{{}} ``` {{ + {{ with .Get "align" }}{{end}} \ No newline at end of file -- cgit v1.2.3