Skip to content

Commit

Permalink
refactor(hugo): link snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Nov 20, 2023
1 parent 467668f commit e544e83
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
11 changes: 1 addition & 10 deletions docs/content/en/guide/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ weight: 30
Get message links from "Copy Link" button in official clients.
{{< /hint >}}

{{< details title="Message Link Examples" open=false >}}

- `https://t.me/telegram/193`
- `https://t.me/c/1697797156/151`
- `https://t.me/iFreeKnow/45662/55005`
- `https://t.me/c/1492447836/251015/251021`
- `https://t.me/opencfdchannel/4434?comment=360409`
- `https://t.me/myhostloc/1485524?thread=1485523`
- `...` (File a new issue if you find a new link format)
{{< /details >}}
{{< include "snippets/link.md" >}}

{{< command >}}
tdl dl -u https://t.me/tdl/1 -u https://t.me/tdl/2
Expand Down
14 changes: 14 additions & 0 deletions docs/content/en/snippets/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
---

{{< details title="Message Link Examples" open=false >}}

- `https://t.me/telegram/193`
- `https://t.me/c/1697797156/151`
- `https://t.me/iFreeKnow/45662/55005`
- `https://t.me/c/1492447836/251015/251021`
- `https://t.me/opencfdchannel/4434?comment=360409`
- `https://t.me/myhostloc/1485524?thread=1485523`
- `...` (File a new issue if you find a new link format)

{{< /details >}}
11 changes: 1 addition & 10 deletions docs/content/zh/guide/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ weight: 30
点击官方客户端的 "复制链接" 按钮获取消息链接。
{{< /hint >}}

{{< details title="消息链接示例" open=false >}}

- `https://t.me/telegram/193`
- `https://t.me/c/1697797156/151`
- `https://t.me/iFreeKnow/45662/55005`
- `https://t.me/c/1492447836/251015/251021`
- `https://t.me/opencfdchannel/4434?comment=360409`
- `https://t.me/myhostloc/1485524?thread=1485523`
- `...`(如果发现新的链接格式,请提交新的 Issue)
{{< /details >}}
{{< include "snippets/link.md" >}}

{{< command >}}
tdl dl -u https://t.me/tdl/1 -u https://t.me/tdl/2
Expand Down
14 changes: 14 additions & 0 deletions docs/content/zh/snippets/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
---

{{< details title="消息链接示例" open=false >}}

- `https://t.me/telegram/193`
- `https://t.me/c/1697797156/151`
- `https://t.me/iFreeKnow/45662/55005`
- `https://t.me/c/1492447836/251015/251021`
- `https://t.me/opencfdchannel/4434?comment=360409`
- `https://t.me/myhostloc/1485524?thread=1485523`
- `...`(如果发现新的链接格式,请提交新的 Issue)

{{< /details >}}

0 comments on commit e544e83

Please sign in to comment.