Skip to content

Commit

Permalink
Merge pull request #59 from alvaromontoro/bugfix/update-random
Browse files Browse the repository at this point in the history
Bugfix/update random
  • Loading branch information
alvaromontoro authored Oct 31, 2024
2 parents c8499b6 + 2e358ea commit ff3a6c4
Show file tree
Hide file tree
Showing 163 changed files with 201 additions and 199 deletions.
10 changes: 6 additions & 4 deletions bin/new-cartoon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ id=$(ls ./comics | wc -l)
let id=id+0
let previousId=id-1
let nextId=id+1
let random1=$(jot -r 1 1 $id)
let random2=$(jot -r 1 1 $id)

###################################################################
### create the comic basic structure
Expand Down Expand Up @@ -262,7 +264,7 @@ echo "<!doctype html>
</svg>
<span>Previous</span>
</a>
<a class=\"random-post\" href=\"/comics/74\">
<a class=\"random-post\" href=\"/comics/${random1}\">
<svg width=\"1em\" height=\"1em\" viewBox=\"0 0 100 100\" class=\"random\" aria-hidden=\"true\">
<path class=\"random\" d=\"M100,25 80,2 80,48Z\" />
<path class=\"random\" d=\"M100,75 80,98 80,52Z\" />
Expand Down Expand Up @@ -305,7 +307,7 @@ echo " </div>
</svg>
<span>Previous</span>
</a>
<a class=\"random-post\" href=\"/comics/85\">
<a class=\"random-post\" href=\"/comics/${random2}\">
<svg width=\"1em\" height=\"1em\" viewBox=\"0 0 100 100\" class=\"random\" aria-hidden=\"true\">
<path class=\"random\" d=\"M100,25 80,2 80,48Z\" />
<path class=\"random\" d=\"M100,75 80,98 80,52Z\" />
Expand Down Expand Up @@ -494,7 +496,7 @@ echo "<!doctype html>
</svg>
<span>Previous</span>
</a>
<a class=\"random-post\" href=\"/comics/74\">
<a class=\"random-post\" href=\"/comics/${random1}\">
<svg width=\"1em\" height=\"1em\" viewBox=\"0 0 100 100\" class=\"random\" aria-hidden=\"true\">
<path class=\"random\" d=\"M100,25 80,2 80,48Z\" />
<path class=\"random\" d=\"M100,75 80,98 80,52Z\" />
Expand Down Expand Up @@ -537,7 +539,7 @@ echo " </div>
</svg>
<span>Previous</span>
</a>
<a class=\"random-post\" href=\"/comics/85\">
<a class=\"random-post\" href=\"/comics/${random2}\">
<svg width=\"1em\" height=\"1em\" viewBox=\"0 0 100 100\" class=\"random\" aria-hidden=\"true\">
<path class=\"random\" d=\"M100,25 80,2 80,48Z\" />
<path class=\"random\" d=\"M100,75 80,98 80,52Z\" />
Expand Down
2 changes: 1 addition & 1 deletion comics/1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Flexing</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/1">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Their love was impossible</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/37">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/100/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Jack and Rose</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/144">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/101/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Brains</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/18">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/102/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1>Red Border</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/99">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/103/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>News</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/3">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/104/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Then and Now</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/160">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/105/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Divtober</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/77">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/107/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Reactions (Meme)</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/111">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/108/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h1>Sharing Demos Online: Social Media Reaction</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/121">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/109/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Coincidence?</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/7">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Superheroes.css</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/145">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/110/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Riddle</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/154">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/111/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>Nightmare</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/139">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/112/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1>Eleventy-One</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/9">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/113/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1>Goldilocks</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/125">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/114/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Headaches</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/2">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/115/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h1>Do Web Developers Dream of CSSheep?</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/8">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/116/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Cloud Developer</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/135">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/117/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>King</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/11">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/118/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Phantom of the Opera</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/24">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/119/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Winner</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/13">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/12/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Surprised Pikachu</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/134">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
4 changes: 2 additions & 2 deletions comics/120/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h1>Dictator</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/125">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down Expand Up @@ -156,7 +156,7 @@ <h1>Dictator</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/37">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/121/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Basketball Player</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/44">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/122/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Astronaut</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/55">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/123/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>US Politics</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/66">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/124/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Keeping Your Distance</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/26">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/125/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Neo</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/149">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/126/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Transformer</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/14">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/127/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>PR Reviews</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/6">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/128/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Layers</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/41">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/129/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Appliance</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/141">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/13/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1>Scroll Snap</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/103">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/130/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1>Spring Break</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/38">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/131/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h1>Kids Fighting</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/157s">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/132/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Not You (I)</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/58">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
2 changes: 1 addition & 1 deletion comics/133/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Not You (II)</h1>
</svg>
<span>Previous</span>
</a>
<a class="random-post" href="/comics/85">
<a class="random-post" href="/comics/129">
<svg width="1em" height="1em" viewBox="0 0 100 100" class="random" aria-hidden="true">
<path class="random" d="M100,25 80,2 80,48Z" />
<path class="random" d="M100,75 80,98 80,52Z" />
Expand Down
Loading

0 comments on commit ff3a6c4

Please sign in to comment.