diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 9b7745e9..c040407a 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -1,53 +1,3 @@ -{{/* - -doc: Cards - -{{< card >}} -title = 'Only title' -{{< /card >}} - -{{< card >}} -body = ''' -Only body. - -But with multiple text paragraphs. -''' -{{< /card >}} - -{{< card >}} -title = 'Heading and body' -body = ''' -Content of the third card. - -{{< badge primary >}}Sample badge{{< /badge >}} -''' -{{< /card >}} - -{{< card >}} -title = 'A card with a dropdown menu' -body = ''' -{{< dropdown >}} -title = 'Click to expand dropdown' -icon = 'fa-solid fa-eye' -body = 'Hidden content' -{{< /dropdown >}} -''' -{{< /card >}} - -{{< card >}} -title = 'A clickable card' -link = 'https://example.com' -{{< /card >}} - -{{< card >}} -header = 'Header' -title = 'Card Title' -body = 'Card content' -footer = 'Footer' -{{< /card >}} - -*/}} - {{- $data := .Inner | transform.Unmarshal -}} {{- with .Parent -}}
diff --git a/layouts/shortcodes/grid.html b/layouts/shortcodes/grid.html index 66753f9b..0efac080 100644 --- a/layouts/shortcodes/grid.html +++ b/layouts/shortcodes/grid.html @@ -1,57 +1,3 @@ -{{/* - -doc: Grids. - -{{< grid columns="1 2 2 3">}} - -{{< card >}} -title = 'Only title' -{{< /card >}} - -{{< card >}} -body = ''' -Only body. - -But with multiple text paragraphs. -''' -{{< /card >}} - -{{< card >}} -title = 'Heading and body' -body = ''' -Content of the third card. - -{{< badge primary >}}Sample badge{{< /badge >}} -''' -{{< /card >}} - -{{< card >}} -title = 'A card with a dropdown menu' -body = ''' -{{< dropdown >}} -title = 'Click to expand dropdown' -icon = 'fa-solid fa-eye' -body = 'Hidden content' -{{< /dropdown >}} -''' -{{< /card >}} - -{{< card >}} -title = 'A clickable card' -link = 'https://example.com' -{{< /card >}} - -{{< card >}} -header = 'Header' -title = 'Card Title' -body = 'Card content' -footer = 'Footer' -{{< /card >}} - -{{< /grid >}} - -*/}} -
{{- with .Get "columns" -}} {{ $columns := split . " " }} diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html index ca602d6b..556bdab8 100644 --- a/layouts/shortcodes/youtube.html +++ b/layouts/shortcodes/youtube.html @@ -1,21 +1,3 @@ -{{/* - -doc: Embed YouTube videos, with foldable captions. The `levelOffset` parameter can be used to control the depth of the video heading and content. The shortcode can be invoked either with an `id` attribute, or by specifying `page`. In the latter case, that page's preamble should provide `youtube_id`, `title`, `venue`, and `date`, and its contents act as the video transcript. Remember the closing tag! - -{{< youtube id="EmGSSbwdCZQ" class="talk" title="YouTube: Open Data Science" venue="CU Denver Data Science Symposium 2020" author="Stefan van der Walt" levelOffset=3 >}} - -Here, I will give a transcript of the whole video, and say some things about it that you cannot know otherwise without watching the **video**. - -### But what is it? - -This is it! - -{{< /youtube >}} - -{{< youtube page="video-page" levelOffset=3 >}}{{< /youtube >}} - -*/}} - {{- $id := .Get "id" -}} {{- $title := "" -}} {{- $about := "" -}}