diff --git a/exampleSite/content/en/shortcodes/columns.md b/exampleSite/content/en/shortcodes/columns.md index 91043cd..8302266 100644 --- a/exampleSite/content/en/shortcodes/columns.md +++ b/exampleSite/content/en/shortcodes/columns.md @@ -4,6 +4,14 @@ title: Columns The Columns shortcode can be used to organize content side-by-side (horizontally) for better readability. +## Attributes + +| Name | Description | default | +| --------------- | ------------------------------------------------ | ------- | +| size (optional) | size of the first column (small\|regular\|large) | regular | + +## Usage + ```html {{* columns */>}} ## Left Content diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index c319671..cec8a95 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -7,7 +7,7 @@ --code {{- end }}" href="{{ .Destination | safeURL }}" - {{ with .Title }}title="{{ . }}"{{ end }} + {{- with .Title }}{{ printf "title=\"%s\"" . | safeHTMLAttr }}{{- end }} > {{- .Text | safeHTML -}} diff --git a/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html index 2bb72b2..5a7bb62 100644 --- a/layouts/shortcodes/columns.html +++ b/layouts/shortcodes/columns.html @@ -1,4 +1,11 @@ -