Skip to content

Commit

Permalink
When browsing the #images tag, show links to iot and generative image…
Browse files Browse the repository at this point in the history
… bots.
  • Loading branch information
stefanbohacek committed Jul 18, 2019
1 parent 378ecfe commit a6ebd48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function tag_links( $tag ){

if ( in_array( 'opensource', $tags ) ) { ?>
<a class="btn mb-3" href="/bot/?opensource=true">Browse opensource bots</a>
<?php } elseif ( in_array( 'images', $tags ) ) { ?>
<a class="btn mb-3" href="/bot/?tags=images,generative">#images+generative</a>
<a class="btn mb-3" href="/bot/?tags=images,iot">#images+iot</a>
<?php } elseif ( in_array( 'generative', $tags ) ) { ?>
<a class="btn mb-3" href="/bot/?tags=generative,images">#generative+images</a>
<a class="btn mb-3" href="/bot/?tags=generative,text">#generative+text</a>
Expand Down

0 comments on commit a6ebd48

Please sign in to comment.