{{ $GameRepoId := .Get 0 }} {{ $Branch := .Get 1 | default "master" }} {{ $GameFileDownloadUrl := .Get 2 | default "" }} {{/* $GameType := .Get 1 | default "original" */}} {{/* {{ $GameApiUrl := add "https://api.erag.eu.org/" $GameName }} {{ $GameInfoUrl := add $GameApiUrl "/version/json" }} */}} {{ $GameRepoBaseUrl := add "https://gitgud.io/api/v4/projects/" $GameRepoId}} {{ if not $GameFileDownloadUrl }} {{ $GameFileDownloadUrl = add $GameRepoBaseUrl "/repository/archive.zip?sha=" $Branch}} {{ end }} {{ $repo_data := partialCached "repo_info_json.html" $GameRepoId $GameRepoId }} {{ $commits_data := partialCached "commits_info_json.html" $GameRepoId $GameRepoId }} {{ $GameName := $repo_data.name }} {{ $GameDes := $repo_data.description }} {{ $commit := index $commits_data 0 }} {{ $commit_msg := $commit.message }} {{ $commit_url := $commit.web_url }} {{ $update_time := $commit.committed_date }}

{{- $GameName -}}

{{- $GameDes -}}
最后更新于 {{ $update_time }}
最新改动 {{ range $i, $commit := $commits_data }} {{ if ge $i 0 }} {{ if lt $i 3}} {{- $commit.message -}} {{ end }} {{ end }} {{ end }}