better shaping
This commit is contained in:
parent
6b5aef215d
commit
b099dcfaf6
|
@ -11,7 +11,8 @@ for channel in $(ls ~/.zen/bunkerbox/channels); do
|
||||||
[[ ! $howmuch ]] && continue
|
[[ ! $howmuch ]] && continue
|
||||||
|
|
||||||
echo "Adding $channel ($howmuch videos)"
|
echo "Adding $channel ($howmuch videos)"
|
||||||
[ $howmuch -gt 220 ] && BIGCHAN="${channel}($howmuch) $BIGCHAN" && continue
|
[ $howmuch -gt 99 ] && BIGCHAN="${channel}($howmuch) $BIGCHAN" && howmuch=100
|
||||||
|
[ $howmuch -lt 5 ] && LOWCHAN="${channel}($howmuch) $LOWCHAN" && continue
|
||||||
|
|
||||||
cat ~/.zen/tmp/chan_cloud.json | jq '.data += [{"name": "'''$channel'''", "link": "/ipns/'''$IPNS'''/tw/'''$channel'''", "weight": "'''$howmuch'''" ,"tooltip": "'''$channel'''"}]' > ~/.zen/tmp/chan_cloud_plus.json
|
cat ~/.zen/tmp/chan_cloud.json | jq '.data += [{"name": "'''$channel'''", "link": "/ipns/'''$IPNS'''/tw/'''$channel'''", "weight": "'''$howmuch'''" ,"tooltip": "'''$channel'''"}]' > ~/.zen/tmp/chan_cloud_plus.json
|
||||||
|
|
||||||
|
@ -21,3 +22,4 @@ done
|
||||||
|
|
||||||
|
|
||||||
## "data:" dans le template homepage.html
|
## "data:" dans le template homepage.html
|
||||||
|
# ~/.zen/tmp/chan_cloud.json
|
||||||
|
|
Loading…
Reference in New Issue