diff --git a/docs/content/en/content-management/shortcodes.md b/docs/content/en/content-management/shortcodes.md index 3be1c6f9e..94966343a 100644 --- a/docs/content/en/content-management/shortcodes.md +++ b/docs/content/en/content-management/shortcodes.md @@ -345,10 +345,10 @@ Using the preceding `vimeo` example, the following HTML will be added to your re {{< /output >}} {{% tip %}} -If you want to further customize the visual styling of the YouTube or Vimeo output, add a `class` named parameter when calling the shortcode. The new `class` will be added to the `
` that wraps the `.*?
\n", + "(?s)\n
.*?.*?
\n", }, // set class { `{{< vimeo 146022717 video >}}`, - "(?s)\n
.*?.*?
\n", + "(?s)\n
.*?.*?
\n", + }, + // set vimeo title + { + `{{< vimeo 146022717 video my-title >}}`, + "(?s)\n
.*?.*?
\n", }, // set class (using named params) { `{{< vimeo id="146022717" class="video" >}}`, - "(?s)^
.*?.*?
", + "(?s)^
.*?.*?
", + }, + // set vimeo title (using named params) + { + `{{< vimeo id="146022717" class="video" title="my vimeo video" >}}`, + "(?s)^
.*?.*?
", }, } { var ( diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 50016764f..2bdb56b5b 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -466,10 +466,10 @@ if (!doNotTrack) { {{ template "_internal/shortcodes/vimeo_simple.html" . }} {{- else -}} {{ if .IsNamedParams }}
- +
{{ else }} -
- +
+
{{ end }} {{- end -}} diff --git a/tpl/tplimpl/embedded/templates/shortcodes/vimeo.html b/tpl/tplimpl/embedded/templates/shortcodes/vimeo.html index 94f03470e..1680c1694 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/vimeo.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/vimeo.html @@ -4,10 +4,10 @@ {{ template "_internal/shortcodes/vimeo_simple.html" . }} {{- else -}} {{ if .IsNamedParams }}
- +
{{ else }} -
- +
+
{{ end }} {{- end -}}