Skip to content

Commit

Permalink
增加回到顶部的能力
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Feb 1, 2024
1 parent 612e5b7 commit 2db4257
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion template/README-en.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ We warmly welcome friends to share their own projects or recommend excellent pro

## Contents

{{- range $key, $val := .}}
{{- range $key, $val := .}}
- [{{$key}}](#{{$key}})
{{- end}}

Expand All @@ -46,4 +46,10 @@ We warmly welcome friends to share their own projects or recommend excellent pro
{{- range $item := $val}}
| [{{$item.owner}}/{{$item.repo}}](https://github.com/{{$item.owner}}/{{$item.repo}}) | {{ghCustom $item.owner $item.repo}} | {{$item.desc_en}} |
{{- end}}

<div align="right">

🔝[Back To Top](#Contents)
</div>

{{end}}
8 changes: 7 additions & 1 deletion template/README.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

## 目录

{{- range $key, $val := .}}
{{- range $key, $val := .}}
- [{{$key}}](#{{$key}})
{{- end}}

Expand All @@ -47,6 +47,12 @@
{{- range $item := $val}}
| [{{$item.owner}}/{{$item.repo}}](https://github.com/{{$item.owner}}/{{$item.repo}}) | {{ghCustom $item.owner $item.repo}} | {{$item.desc}} |
{{- end}}

<div align="right">

🔝[回到顶部](#目录)
</div>

{{end}}

{{updateDesc "eryajf" "awesome-ops"}}

0 comments on commit 2db4257

Please sign in to comment.