Skip to content

Commit 4b29d32

Browse files
committed
update-example-page
Signed-off-by: ZihanKuang <zihan_kuang@outlook.com>
1 parent 61b0a9b commit 4b29d32

File tree

1 file changed

+30
-16
lines changed
  • content/content-formatting-examples

1 file changed

+30
-16
lines changed

content/content-formatting-examples/index.md

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: A collection of examples for formatting content, from basic Markdow
55
draft: true
66
---
77

8-
Welcome! This page showcases our Hugo shortcodes and images and Markdown.
8+
Welcome! This page showcases examples of Hugo shortcodes, images, and Markdown.
99

10-
{{< alert title="Note" title="Example Page: Not for Production" >}}
10+
{{< alert type="note" title="Example Page: Not for Production" >}}
1111
This page will not be published in the [production version](https://cloud.layer5.io/academy/) of the site. It is only visible for local preview and serves as a reference. You can safely delete this page from your repository at any time.
1212
{{< /alert >}}
1313

@@ -89,8 +89,8 @@ Inline code inside table cells:
8989

9090
| Language | Code |
9191
|-------------|--------------------|
92-
| Javascript | `var foo = "bar";` |
93-
| Ruby | `foo = "bar"{` |
92+
| JavaScript | `var foo = "bar";` |
93+
| Ruby | `foo = "bar"` |
9494

9595
----------------
9696

@@ -115,38 +115,51 @@ _The photo above of the Spruce Picea abies shoot with foliage buds: Bjørn Erik
115115
*/>}}
116116
```
117117

118-
效果如下面:
118+
The rendered output is shown below:
119119

120120
<!-- Learn more at https://docs.layer5.io/kanvas/designer/export-designs/#exporting-as-embedding -->
121121
{{< meshery-design-embed
122122
id="embedded-design-c811e9f4-2522-4eb6-b775-7475545356d8"
123123
src="./embedded-design-deploy-meshery-using-meshery.js"
124124
>}}
125125
126+
> [Learn more](https://docs.layer5.io/kanvas/designer/embedding-designs/) about embedded designs.
127+
126128
### Alerts
127129

128-
{{< alert >}}This is an alert.{{< /alert >}}
129-
{{< alert title="Note" >}}This is an alert with a title.{{< /alert >}}
130-
{{< alert title="Note" >}}This is an alert with a title and **Markdown**.{{< /alert >}}
131-
{{< alert type="success" title="Successful Note">}}This is a successful alert.{{< /alert >}}
132-
{{< alert type="warning" >}}This is a warning.{{< /alert >}}
133-
{{< alert type="warning" title="Warning Title" >}}This is a warning with a title.{{< /alert >}}
130+
{{< alert title="Note" >}}A plain alert with a title.{{< /alert >}}
131+
{{< alert type="note" title="Note" >}}This alert supports a title and **Markdown**.{{< /alert >}}
132+
{{< alert type="info" title="Info" >}}This is an informational alert.{{< /alert >}}
133+
{{< alert type="danger" title="Danger" >}}This is a danger alert.{{< /alert >}}
134+
{{< alert type="warning" title="Warning" >}}This is a warning alert.{{< /alert >}}
134135

135136
### TabPane
136137

137138
{{< tabpane text=true >}}
138139

139-
{{% tab header="Full-sized Logo Example" lang="en" active="true" %}}
140+
{{% tab header="Example 1" lang="en" active="true" %}}
141+
142+
Tabs help organize related content.
140143

141-
When users register through the [Open Organization Invitation Link](https://docs.layer5.io/cloud/identity/organizations/org-management/#using-the-open-organization-invitation-link), they will see the full-sized logo.
144+
- Concise explanation
145+
- Another brief point
142146

143147
{{< /tab >}}
144148

145-
{{% tab header="Logo Mark Example" lang="en" %}}
149+
{{% tab header="Example 2" lang="en" %}}
146150

147-
When logging into Layer5 Cloud on mobile devices, the small logo mark will be displayed.
151+
Tabs help organize related content.
148152

149-
<img src="./images/example.png" alt="Logo Mark" style="width:50%; height:auto;" />
153+
- Concise explanation
154+
- Another brief point
155+
156+
{{< /tab >}}
157+
158+
{{% tab header="Example 3" lang="en" %}}
159+
160+
Here is an example image:
161+
162+
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Picea_abies_shoot_with_buds%2C_Sogndal%2C_Norway.jpg/1024px-Picea_abies_shoot_with_buds%2C_Sogndal%2C_Norway.jpg)
150163

151164
{{< /tab >}}
152165

@@ -155,6 +168,7 @@ When logging into Layer5 Cloud on mobile devices, the small logo mark will be di
155168
### Collapsible
156169

157170
{{< details summary="This is a collapsible title" >}}
171+
158172
This is the collapsed content.
159173

160174
It can be a list:

0 commit comments

Comments
 (0)