Skip to content

Commit ada9301

Browse files
Add more closing tags on a new line
1 parent 18ff5c5 commit ada9301

File tree

7 files changed

+63
-31
lines changed

7 files changed

+63
-31
lines changed

layouts/shortcodes/button.html

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,74 +5,88 @@
55
{{< button
66
style="info"
77
label="Info"
8-
link="http://example.com/" >}}
8+
link="http://example.com/"
9+
>}}
910

1011
{{< button
1112
style="success"
1213
label="Success"
13-
link="http://example.com/" >}}
14+
link="http://example.com/"
15+
>}}
1416

1517
{{< button
1618
style="warning"
1719
label="Warning"
18-
link="http://example.com/" >}}
20+
link="http://example.com/"
21+
>}}
1922

2023
{{< button
2124
style="danger"
2225
label="Danger"
23-
link="http://example.com/" >}}
26+
link="http://example.com/"
27+
>}}
2428

2529
{{< button
2630
style="muted"
2731
label="Muted"
28-
link="http://example.com/" >}}
32+
link="http://example.com/"
33+
>}}
2934

3035
{{< button
3136
style="light"
3237
label="Light"
33-
link="http://example.com/" >}}
38+
link="http://example.com/"
39+
>}}
3440

3541
{{< button
3642
style="dark"
3743
label="Dark"
38-
link="http://example.com/" >}}
44+
link="http://example.com/"
45+
>}}
3946

4047
<p>
4148

4249
{{< button
4350
style="outline-info"
4451
label="Info"
45-
link="http://example.com/" >}}
52+
link="http://example.com/"
53+
>}}
4654

4755
{{< button
4856
style="outline-success"
4957
label="Success"
50-
link="http://example.com/" >}}
58+
link="http://example.com/"
59+
>}}
5160

5261
{{< button
5362
style="outline-warning"
5463
label="Warning"
55-
link="http://example.com/" >}}
64+
link="http://example.com/"
65+
>}}
5666

5767
{{< button
5868
style="outline-danger"
5969
label="Danger"
60-
link="http://example.com/" >}}
70+
link="http://example.com/"
71+
>}}
6172

6273
{{< button
6374
style="outline-muted"
6475
label="Muted"
65-
link="http://example.com/" >}}
76+
link="http://example.com/"
77+
>}}
6678

6779
{{< button
6880
style="outline-light"
6981
label="Light"
70-
link="http://example.com/" >}}
82+
link="http://example.com/"
83+
>}}
7184

7285
{{< button
7386
style="outline-dark"
7487
label="Dark"
75-
link="http://example.com/" >}}
88+
link="http://example.com/"
89+
>}}
7690

7791
*/}}
7892

layouts/shortcodes/card.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
{{< dropdown
3030
title="Click to expand dropdown"
3131
icon="fa-solid fa-eye"
32-
body="Hidden content" >}}
32+
body="Hidden content"
33+
>}}
3334
'''
3435
{{< /card >}}
3536

layouts/shortcodes/dropdown.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,33 @@
33
doc: Dropdowns
44

55
{{< dropdown
6-
body="And with no title and some content!" >}}
6+
body="And with no title and some content!"
7+
>}}
78

89
{{< dropdown
910
title="With a title"
10-
body="And some content!" >}}
11+
body="And some content!"
12+
>}}
1113

1214
{{< dropdown
1315
title="With a title and icon"
1416
icon="fa-solid fa-lock-open"
15-
body="And some content and an icon!" >}}
17+
body="And some content and an icon!"
18+
>}}
1619

1720
{{< dropdown
1821
title="A primary color dropdown"
1922
icon="fa-solid fa-lock-open"
2023
color="primary"
21-
body="And some content and an icon!" >}}
24+
body="And some content and an icon!"
25+
>}}
2226

2327
{{< dropdown
2428
title="A secondary color dropdown"
2529
icon="fa-solid fa-eye"
2630
color="secondary"
27-
body="And some content and an icon!" >}}
31+
body="And some content and an icon!"
32+
>}}
2833

2934
*/}}
3035

layouts/shortcodes/figure.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
attribution="Figure Credits: Cute puppies image from unsplash.com"
1212
attributionlink="https://images.unsplash.com/photo-1546238232-20216dec9f72"
1313
caption="A figure is an image with a caption. Figures may also include a tile, legend, and/or attribution."
14-
legend="**TODO: use tomltotable (https://github.com/scientific-python/scientific-python-hugo-theme/pull/548)**<br>This paragraph is also part of the legend." >}}
14+
legend="**TODO: use tomltotable (https://github.com/scientific-python/scientific-python-hugo-theme/pull/548)**<br>This paragraph is also part of the legend."
15+
>}}
1516

1617
{{< figure
1718
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
@@ -21,7 +22,8 @@
2122
align="left"
2223
height=150
2324
width=300
24-
caption="A figure with left alignment." >}}
25+
caption="A figure with left alignment."
26+
>}}
2527

2628
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2729

@@ -37,7 +39,8 @@
3739
align="right"
3840
height=150
3941
width=300
40-
caption="A figure with right alignment." >}}
42+
caption="A figure with right alignment."
43+
>}}
4144

4245
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
4346

layouts/shortcodes/grid.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
{{< dropdown
5353
title="Click to expand dropdown"
5454
icon="fa-solid fa-eye"
55-
body="Hidden content" >}}
55+
body="Hidden content"
56+
>}}
5657
'''
5758

5859
[[item]]
@@ -69,7 +70,8 @@
6970
body='''
7071
{{< image
7172
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
72-
alt="Cute puppies" >}}
73+
alt="Cute puppies"
74+
>}}
7375
'''
7476

7577
[[item]]
@@ -79,7 +81,8 @@
7981
body = '''
8082
{{< image
8183
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
82-
alt="Cute puppies" >}}
84+
alt="Cute puppies"
85+
>}}
8386

8487
A clickable figure card'''
8588

@@ -89,7 +92,9 @@
8992
body = '''
9093
{{< image
9194
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
92-
alt="Cute puppies" >}}'''
95+
alt="Cute puppies"
96+
>}}
97+
'''
9398
footer = 'A clickable figure card'
9499

95100
{{< /grid >}}

layouts/shortcodes/image.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
77
alt="Cute puppies"
88
height=200
9-
width=400 >}}
9+
width=400
10+
>}}
1011

1112
A clickable image:
1213

@@ -15,7 +16,8 @@
1516
alt="Cute puppies"
1617
target="https://unsplash.com/"
1718
height=200
18-
width=400 >}}
19+
width=400
20+
>}}
1921

2022
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
2123

@@ -25,7 +27,8 @@
2527
align="right"
2628
height=200
2729
width=400
28-
loading="lazy" >}}
30+
loading="lazy"
31+
>}}
2932

3033
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
3134

layouts/shortcodes/sidebar.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
{{< image
1010
src="https://images.unsplash.com/photo-1546238232-20216dec9f72"
1111
alt="Cute puppies"
12-
align="center" >}}
12+
align="center"
13+
>}}
1314

1415
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
1516

0 commit comments

Comments
 (0)