docs(hugo): add logo and favicon to index page

This commit is contained in:
iyear 2024-06-20 01:16:23 +08:00
parent a5ae3c3c01
commit 291d7f5ad3
4 changed files with 13 additions and 5 deletions

View File

@ -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

View File

@ -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" >}}
## 赞助者

View File

@ -1,4 +1,8 @@
{{ $file := .Get 0 }}
{{ $file := .Get "src" }}
{{ $height := .Get "height" }}
{{ $width := .Get "width" }}
{{ $align := .Get "align" }}
{{ with resources.Get $file }}
<img src="{{ .RelPermalink }}" alt="{{ .Name }}" />
<img src="{{ .RelPermalink }}" alt="{{ .Name }}" height="{{ $height }}" width="{{ $width }}" align="{{ $align }}" />
{{ end }}

BIN
docs/static/favicon.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB