Skip to content

Commit 5a16e85

Browse files
committed
Minor modifications.
1 parent e61e23e commit 5a16e85

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

content/develop/multitabs-demo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Welcome to the **Getting Started** tab! This demonstrates the simpler multi-tab
1616
### Quick Setup
1717
1. Include the tab component files
1818
2. Use the `multitabs` shortcode with tab parameters
19-
3. Separate content with `---` dividers
19+
3. Separate content with a divider: `- tab - sep -
2020

2121
This approach avoids Hugo's nested shortcode parsing issues while still providing clean multi-tab functionality.
2222

23-
- - -
23+
-tab-sep-
2424

2525
## Key Features
2626

@@ -41,7 +41,7 @@ document.addEventListener('DOMContentLoaded', () => {
4141
});
4242
```
4343

44-
- - -
44+
-tab-sep-
4545

4646
## How to Use
4747

layouts/shortcodes/multitabs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
Content for tab 1
1111

12-
- - -
12+
-tab-sep-
1313

1414
Content for tab 2
1515

16-
- - -
16+
-tab-sep-
1717

1818
Content for tab 3
1919
{{< /multitabs >}}
@@ -22,8 +22,8 @@
2222
{{ $id := .Get "id" | default (printf "tabs-%s" (substr (.Inner | md5) 0 8)) }}
2323
{{ $tabs := slice }}
2424

25-
{{/* Split content by --- separator */}}
26-
{{ $sections := split .Inner "- - -" }}
25+
{{/* Split content by -tab-sep- separator */}}
26+
{{ $sections := split .Inner "-tab-sep-" }}
2727

2828
{{/* Get tab titles from parameters */}}
2929
{{ $tabTitles := slice }}

0 commit comments

Comments
 (0)