diff --git a/template/README-en.tpl b/template/README-en.tpl index 5f3fbd8..c525342 100644 --- a/template/README-en.tpl +++ b/template/README-en.tpl @@ -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}} @@ -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}} + +
+ +🔝[Back To Top](#Contents) +
+ {{end}} \ No newline at end of file diff --git a/template/README.tpl b/template/README.tpl index fc12d72..ee764b0 100644 --- a/template/README.tpl +++ b/template/README.tpl @@ -30,7 +30,7 @@ ## 目录 -{{- range $key, $val := .}} +{{- range $key, $val := .}} - [{{$key}}](#{{$key}}) {{- end}} @@ -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}} + +
+ +🔝[回到顶部](#目录) +
+ {{end}} {{updateDesc "eryajf" "awesome-ops"}} \ No newline at end of file