Update the Git RSS to customAPI
This commit is contained in:
@@ -1080,9 +1080,29 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
- size: small
|
- size: small
|
||||||
widgets:
|
widgets:
|
||||||
- type: rss
|
- type: custom-api
|
||||||
title: SirBlob Git
|
title: SirBlob Gitea
|
||||||
limit: 15
|
url: https://git.sirblob.co/api/v1/users/SirBlob/repos
|
||||||
style: vertical-list
|
parameters:
|
||||||
feeds:
|
sort: updated
|
||||||
- url: https://git.sirblob.co/SirBlob.rss
|
limit: 15
|
||||||
|
cache: 1m
|
||||||
|
template: |
|
||||||
|
<div class="gitea-repos">
|
||||||
|
<ul class="list list-gap-14 collapsible-container" data-collapse-after="10">
|
||||||
|
{{ range .JSON.Array "" }}
|
||||||
|
<li>
|
||||||
|
<a class="size-h4 color-primary text-truncate block" href="{{ .String "html_url" }}" target="_blank">{{ .String "name" }}</a>
|
||||||
|
{{ if .String "description" }}
|
||||||
|
<p class="size-sm color-subdue line-clamp-2" style="margin-top: 4px;">{{ .String "description" }}</p>
|
||||||
|
{{ end }}
|
||||||
|
<ul class="list-horizontal-text size-xs margin-top-1">
|
||||||
|
<li>{{ formatTime "Jan 02" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
|
||||||
|
{{ if .String "language" }}
|
||||||
|
<li>{{ .String "language" }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user