File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 59
59
-}}
60
60
{{- $categories := $group.categories | default $projectsAdapters.categories -}}
61
61
{{- $collections := $group.collections | default $projectsAdapters.collections -}}
62
+ {{- $subtitle := T "projects.source" (dict
63
+ "Name" $repoInfo.full_name
64
+ "Link" $repoInfo.html_url
65
+ "Website" $repoInfo.homepage
66
+ ) -}}
62
67
{{- $params := dict
63
68
"fromAdapters" "projects"
64
69
"author" $author
68
73
"lightgallery" true
69
74
"capitalizeTitles" false
70
75
"toc" (dict "ordered" false)
71
- "subtitle" ($repoInfo.homepage | default $repoInfo.html_url)
76
+ "subtitle" $subtitle
72
77
"sourceURL" (add $readme.html_url "?plain=1")
73
78
"editURL" (replace $readme.html_url "/blob/" "/edit/" )
74
79
"LinkToReport" false
Original file line number Diff line number Diff line change 4
4
[projects ]
5
5
relatedArticles = " Related Articles"
6
6
errorGetGhRepo = " failed to fetch repo info from GitHub API, Please check the network!"
7
+ source = " Source: [{{ .Name }}]({{ .Link }}){{ with .Website }}<br>Website: <{{ . }}>{{ end }}"
7
8
poweredBy = " This page is powered by <a href=\" https://github.com/hugo-fixit/component-projects\" >Component Projects</a>."
8
9
9
10
[projects .totalStarCount ]
Original file line number Diff line number Diff line change 5
5
[projects ]
6
6
relatedArticles = " 相关文章"
7
7
errorGetGhRepo = " 从 GitHub API 获取仓库信息失败,请检查网络!"
8
+ source = " 来源:[{{ .Name }}]({{ .Link }}){{ with .Website }}<br>网站:<{{ . }}>{{ end }}"
8
9
poweredBy = " 本页面由 <a href=\" https://github.com/hugo-fixit/component-projects\" >Component Projects</a> 强力驱动。"
9
10
10
11
[projects .totalStarCount ]
You can’t perform that action at this time.
0 commit comments