Skip to content

Commit de68809

Browse files
Hide shortcodes that will be removed (#517)
1 parent 7e41678 commit de68809

3 files changed

Lines changed: 0 additions & 122 deletions

File tree

layouts/shortcodes/card.html

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,3 @@
1-
{{/*
2-
3-
doc: Cards
4-
5-
{{< card >}}
6-
title = 'Only title'
7-
{{< /card >}}
8-
9-
{{< card >}}
10-
body = '''
11-
Only body.
12-
13-
But with multiple text paragraphs.
14-
'''
15-
{{< /card >}}
16-
17-
{{< card >}}
18-
title = 'Heading and body'
19-
body = '''
20-
Content of the third card.
21-
22-
{{< badge primary >}}Sample badge{{< /badge >}}
23-
'''
24-
{{< /card >}}
25-
26-
{{< card >}}
27-
title = 'A card with a dropdown menu'
28-
body = '''
29-
{{< dropdown >}}
30-
title = 'Click to expand dropdown'
31-
icon = 'fa-solid fa-eye'
32-
body = 'Hidden content'
33-
{{< /dropdown >}}
34-
'''
35-
{{< /card >}}
36-
37-
{{< card >}}
38-
title = 'A clickable card'
39-
link = 'https://example.com'
40-
{{< /card >}}
41-
42-
{{< card >}}
43-
header = 'Header'
44-
title = 'Card Title'
45-
body = 'Card content'
46-
footer = 'Footer'
47-
{{< /card >}}
48-
49-
*/}}
50-
511
{{- $data := .Inner | transform.Unmarshal -}}
522
{{- with .Parent -}}
533
<div class="sd-col sd-d-flex-row">

layouts/shortcodes/grid.html

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
{{/*
2-
3-
doc: Grids.
4-
5-
{{< grid columns="1 2 2 3">}}
6-
7-
{{< card >}}
8-
title = 'Only title'
9-
{{< /card >}}
10-
11-
{{< card >}}
12-
body = '''
13-
Only body.
14-
15-
But with multiple text paragraphs.
16-
'''
17-
{{< /card >}}
18-
19-
{{< card >}}
20-
title = 'Heading and body'
21-
body = '''
22-
Content of the third card.
23-
24-
{{< badge primary >}}Sample badge{{< /badge >}}
25-
'''
26-
{{< /card >}}
27-
28-
{{< card >}}
29-
title = 'A card with a dropdown menu'
30-
body = '''
31-
{{< dropdown >}}
32-
title = 'Click to expand dropdown'
33-
icon = 'fa-solid fa-eye'
34-
body = 'Hidden content'
35-
{{< /dropdown >}}
36-
'''
37-
{{< /card >}}
38-
39-
{{< card >}}
40-
title = 'A clickable card'
41-
link = 'https://example.com'
42-
{{< /card >}}
43-
44-
{{< card >}}
45-
header = 'Header'
46-
title = 'Card Title'
47-
body = 'Card content'
48-
footer = 'Footer'
49-
{{< /card >}}
50-
51-
{{< /grid >}}
52-
53-
*/}}
54-
551
<div class="sd-container-fluid sd-mb-4">
562
{{- with .Get "columns" -}}
573
{{ $columns := split . " " }}

layouts/shortcodes/youtube.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
{{/*
2-
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!
4-
5-
{{< youtube id="EmGSSbwdCZQ" class="talk" title="YouTube: Open Data Science" venue="CU Denver Data Science Symposium 2020" author="Stefan van der Walt" levelOffset=3 >}}
6-
7-
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**.
8-
9-
### But what is it?
10-
11-
This is it!
12-
13-
{{< /youtube >}}
14-
15-
{{< youtube page="video-page" levelOffset=3 >}}{{< /youtube >}}
16-
17-
*/}}
18-
191
{{- $id := .Get "id" -}}
202
{{- $title := "" -}}
213
{{- $about := "" -}}

0 commit comments

Comments
 (0)