Update the Git RSS to customAPI
This commit is contained in:
@@ -1080,9 +1080,29 @@
|
||||
{{ end }}
|
||||
- size: small
|
||||
widgets:
|
||||
- type: rss
|
||||
title: SirBlob Git
|
||||
limit: 15
|
||||
style: vertical-list
|
||||
feeds:
|
||||
- url: https://git.sirblob.co/SirBlob.rss
|
||||
- type: custom-api
|
||||
title: SirBlob Gitea
|
||||
url: https://git.sirblob.co/api/v1/users/SirBlob/repos
|
||||
parameters:
|
||||
sort: updated
|
||||
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