Skip to content

Commit b514a44

Browse files
committed
Test 3
1 parent 91171da commit b514a44

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

content/develop/_index.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ hideListLinks: true
55
linkTitle: Develop
66
---
77

8-
| Try these commands | Redis Console (redis-cli) |
9-
|:----- |----- |
10-
| | {{< redis-cli >}}LOLWUT VERSION 6{{< /redis-cli >}} |
8+
The rest of the landing page.
9+
10+
{{% redis-cli %}}
11+
SET mykey "Hello"
12+
GET mykey
13+
14+
SET anotherkey "will expire in a minute" EX 60
15+
{{% /redis-cli %}}

layouts/develop/list.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,45 @@ <h1>
3434
{{ end }}
3535
{{ end }}
3636

37+
<!-- CLI Display Block as Table -->
38+
<table class="w-full border-collapse">
39+
<thead>
40+
<tr>
41+
<th class="p-4 text-left">Try these Redis commands in the CLI to the right</th>
42+
<th class="p-4 text-left">Redis CLI</th>
43+
</tr>
44+
</thead>
45+
<tbody>
46+
<tr>
47+
<td class="align-top p-4">
48+
<p>PING</p>
49+
<p>HSET user:1 name antirez vocation artist</p>
50+
<p>SET e 2.71</p>
51+
<p>INCRBYFLOAT e 0.43</p>
52+
<p>RENAME e pi</p>
53+
</td>
54+
<td class="align-top p-4">
55+
<div class="bg-slate-900 rounded-xl shadow-lg shadow-slate-900/10">
56+
<div class="border-b border-slate-700 rounded-t-xl px-4 py-3 w-full flex">
57+
{{ partial "icons/cli-circle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }}
58+
{{ partial "icons/cli-triangle" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }}
59+
{{ partial "icons/cli-star" (dict "class" "shrink-0 h-[1.0625rem] w-[1.0625rem] fill-slate-50") }}
60+
</div>
61+
<form class="redis-cli" typewriter>
62+
<pre tabindex="0" class="whitespace-pre">
63+
PING
64+
HSET user:1 name antirez vocation artist
65+
SET e 2.71
66+
INCRBYFLOAT e 0.43
67+
RENAME e pi
68+
</pre>
69+
</form>
70+
</div>
71+
</td>
72+
</tr>
73+
</tbody>
74+
</table>
75+
3776
{{ .Content }}
3877
{{ if not .Params.hideListLinks }}
3978
<nav>

0 commit comments

Comments
 (0)