diff --git a/docs/content/en/_index.md b/docs/content/en/_index.md index d8c373875..7215d39ba 100644 --- a/docs/content/en/_index.md +++ b/docs/content/en/_index.md @@ -10,9 +10,11 @@ title: Introduction ![](https://img.shields.io/github/v/release/iyear/tdl?color=red&style=flat-square) ![](https://img.shields.io/github/downloads/iyear/tdl/total?style=flat-square) +{{< image src="img/logo.png" align="right" height="270" width="270">}} + 📥 Telegram Downloader, but more than a downloader -## Features +#### Features: - Single file start-up - Low resource usage @@ -27,7 +29,7 @@ title: Introduction It reaches my proxy's speed limit, and the **speed depends on whether you are a premium** -{{< image "img/preview.gif" >}} +{{< image src="img/preview.gif" >}} ## Sponsors diff --git a/docs/content/zh/_index.md b/docs/content/zh/_index.md index 08ea697a6..76a65f87e 100644 --- a/docs/content/zh/_index.md +++ b/docs/content/zh/_index.md @@ -10,6 +10,8 @@ title: 介绍 ![](https://img.shields.io/github/v/release/iyear/tdl?color=red&style=flat-square) ![](https://img.shields.io/github/downloads/iyear/tdl/total?style=flat-square) +{{< image src="img/logo.png" align="right" height="310" width="310">}} + 📥 Telegram Downloader, but more than a downloader ## 特性 @@ -27,7 +29,7 @@ title: 介绍 预览中的速度已经达到了代理的限制,同时**速度取决于你是否是付费用户** -{{< image "img/preview.gif" >}} +{{< image src="img/preview.gif" >}} ## 赞助者 diff --git a/docs/layouts/shortcodes/image.html b/docs/layouts/shortcodes/image.html index 8eff82fe4..4ac0908f9 100644 --- a/docs/layouts/shortcodes/image.html +++ b/docs/layouts/shortcodes/image.html @@ -1,4 +1,8 @@ -{{ $file := .Get 0 }} +{{ $file := .Get "src" }} +{{ $height := .Get "height" }} +{{ $width := .Get "width" }} +{{ $align := .Get "align" }} + {{ with resources.Get $file }} -{{ .Name }} +{{ .Name }} {{ end }} diff --git a/docs/static/favicon.png b/docs/static/favicon.png new file mode 100644 index 000000000..6abfccd51 Binary files /dev/null and b/docs/static/favicon.png differ