Skip to content

Commit

Permalink
docs(hugo): add logo and favicon to index page
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Jun 19, 2024
1 parent a5ae3c3 commit 291d7f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 3 additions & 1 deletion docs/content/zh/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

## 特性
Expand All @@ -27,7 +29,7 @@ title: 介绍

预览中的速度已经达到了代理的限制,同时**速度取决于你是否是付费用户**

{{< image "img/preview.gif" >}}
{{< image src="img/preview.gif" >}}

## 赞助者

Expand Down
8 changes: 6 additions & 2 deletions docs/layouts/shortcodes/image.html
Original file line number Diff line number Diff line change
@@ -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 }}
Binary file added docs/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 291d7f5

Please sign in to comment.