Skip to content

Commit 5e5c5d4

Browse files
committed
feat(themes): add repository field over link
because of the theme ficeFox
1 parent 5d9c740 commit 5e5c5d4

2 files changed

Lines changed: 1775 additions & 866 deletions

File tree

scripts/sort_themes.nu

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,19 @@ export def main [
147147
let data = open $source
148148
| each {|item|
149149

150-
let info = if ($item.link | str contains 'github') {
150+
let link = $item.repository
151+
152+
let info = if ($link | str contains 'github') {
151153
sleep $delay
152-
$item.link | parse_link | github $token
153-
} else if ($item.link | str contains 'gitlab') {
154+
$link | parse_link | github $token
155+
} else if ($link | str contains 'gitlab') {
154156
sleep $delay
155-
$item.link | parse_link | gitlab $token
156-
} else if ($item.link | str contains 'codeberg') {
157+
$link | parse_link | gitlab $token
158+
} else if ($link | str contains 'codeberg') {
157159
sleep $delay
158-
$item.link | parse_link | codeberg $token
160+
$link | parse_link | codeberg $token
159161
} else {
160-
$item.link | parse_link | clone
162+
$link | parse_link | clone
161163
}
162164

163165
{

0 commit comments

Comments
 (0)