Skip to content

Commit

Permalink
Show browse support link by default when there are more than 40 not…
Browse files Browse the repository at this point in the history
…ebooks.
  • Loading branch information
xwmx committed Oct 12, 2024
1 parent 48ae9d6 commit 2258d86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9284,9 +9284,9 @@ Supported Values: 'accept', 'bash', 'nc', 'ncat', netcat', 'socat'
##### `$NB_BROWSE_SUPPORT_LINKS`

```text
Default: '0'
Default: '1'

Set to '1' to show the 'Donate' and 'Sponsor' links in `nb browse`.
Set to '0' to show the 'Donate' and 'Sponsor' links in `nb browse`.

Supported Values: '0' '1'
```
Expand Down
4 changes: 2 additions & 2 deletions docs/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9290,9 +9290,9 @@ Supported Values: 'accept', 'bash', 'nc', 'ncat', netcat', 'socat'
##### `$NB_BROWSE_SUPPORT_LINKS`

```text
Default: '0'
Default: '1'

Set to '1' to show the 'Donate' and 'Sponsor' links in `nb browse`.
Set to '0' to show the 'Donate' and 'Sponsor' links in `nb browse`.

Supported Values: '0' '1'
```
Expand Down
4 changes: 2 additions & 2 deletions nb
Original file line number Diff line number Diff line change
Expand Up @@ -21292,8 +21292,8 @@ HEREDOC

cat

if ((${NB_BROWSE_SUPPORT_LINKS:-0})) &&
((${#_notebook_names[@]} - 20))
if ((${NB_BROWSE_SUPPORT_LINKS:-1})) &&
((${#_notebook_names[@]} - 40))
then
printf "<br /><div align=\"center\" class=\"muted\">"
printf "<a href=\"https://github.com/sponsors/xwmx\">Sponsor</a>\\n"
Expand Down

0 comments on commit 2258d86

Please sign in to comment.