From cdde1d9a54ce7f86503956e445dbbaf8540e9b96 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 23 Feb 2021 14:34:53 +0530 Subject: add breadcrumbs to all pages --- docs/art/index.html | 10 ++++++---- docs/posts/WPA_woes/index.html | 10 ++++++++-- docs/posts/auto-currying_rust_functions/index.html | 10 ++++++++-- docs/posts/bash_harder_with_vim/index.html | 10 ++++++++-- docs/posts/bye_bye_BDFs/index.html | 10 ++++++++-- docs/posts/call_to_ARMs/index.html | 10 ++++++++-- docs/posts/color_conundrum/index.html | 10 ++++++++-- docs/posts/font_size_fallacies/index.html | 10 ++++++++-- .../index.html | 10 ++++++++-- docs/posts/gripes_with_go/index.html | 10 ++++++++-- docs/posts/hold_position!/index.html | 10 ++++++++-- docs/posts/index.html | 12 ++++++----- docs/posts/my_setup/index.html | 10 ++++++++-- docs/posts/nixOS/index.html | 10 ++++++++-- docs/posts/onivim_sucks/index.html | 10 ++++++++-- docs/posts/pixel_art_in_GIMP/index.html | 10 ++++++++-- docs/posts/rapid_refactoring_with_vim/index.html | 10 ++++++++-- docs/posts/self-hosting_git/index.html | 10 ++++++++-- docs/posts/static_sites_with_bash/index.html | 10 ++++++++-- docs/posts/termux_tandem/index.html | 10 ++++++++-- docs/posts/turing_complete_type_systems/index.html | 10 ++++++++-- generate.sh | 23 ++++++++++++++++------ post.esh | 10 ++++++++-- 23 files changed, 190 insertions(+), 55 deletions(-) diff --git a/docs/art/index.html b/docs/art/index.html index c55d6b6..8c466d9 100644 --- a/docs/art/index.html +++ b/docs/art/index.html @@ -13,10 +13,12 @@ peppe.rs - -
-
- ⟵ Back + +
+
+ Home + / + Art

Art

diff --git a/docs/posts/WPA_woes/index.html b/docs/posts/WPA_woes/index.html index 10197c4..2efaf70 100644 --- a/docs/posts/WPA_woes/index.html +++ b/docs/posts/WPA_woes/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + WPA Woes View Raw
@@ -82,7 +86,9 @@ $ sudo sv restart dhcpcd

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/auto-currying_rust_functions/index.html b/docs/posts/auto-currying_rust_functions/index.html index 8fe18ef..a2584fe 100644 --- a/docs/posts/auto-currying_rust_functions/index.html +++ b/docs/posts/auto-currying_rust_functions/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Auto-currying Rust Functions View Raw
@@ -546,7 +550,9 @@ test tests::works ... ok

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/bash_harder_with_vim/index.html b/docs/posts/bash_harder_with_vim/index.html index 44e777b..77a4589 100644 --- a/docs/posts/bash_harder_with_vim/index.html +++ b/docs/posts/bash_harder_with_vim/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Bash Harder With Vim View Raw
@@ -92,7 +96,9 @@ Press ENTER or type command to continue

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/bye_bye_BDFs/index.html b/docs/posts/bye_bye_BDFs/index.html index aa1d600..b01c95b 100644 --- a/docs/posts/bye_bye_BDFs/index.html +++ b/docs/posts/bye_bye_BDFs/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Bye Bye BDFs View Raw
@@ -64,7 +68,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/call_to_ARMs/index.html b/docs/posts/call_to_ARMs/index.html index 8dfc89c..e742b93 100644 --- a/docs/posts/call_to_ARMs/index.html +++ b/docs/posts/call_to_ARMs/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Call To ARMs View Raw
@@ -89,7 +93,9 @@ Reading symbols from main... # yay!

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/color_conundrum/index.html b/docs/posts/color_conundrum/index.html index 288f4d0..d5af145 100644 --- a/docs/posts/color_conundrum/index.html +++ b/docs/posts/color_conundrum/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Color Conundrum View Raw
@@ -66,7 +70,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/font_size_fallacies/index.html b/docs/posts/font_size_fallacies/index.html index e7251cb..e765b98 100644 --- a/docs/posts/font_size_fallacies/index.html +++ b/docs/posts/font_size_fallacies/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Font Size Fallacies View Raw
@@ -88,7 +92,9 @@ Dimensions: 1920x1080 @ 13" (29.5x16.5 sq. cm)

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html index 0e6a484..3803666 100644 --- a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html +++ b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Get Better At Yanking And Putting In Vim View Raw
@@ -75,7 +79,9 @@ nnoremap gb `[v`] " "a quick map to perform the above<

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/gripes_with_go/index.html b/docs/posts/gripes_with_go/index.html index 2a317e9..23e8d9e 100644 --- a/docs/posts/gripes_with_go/index.html +++ b/docs/posts/gripes_with_go/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Gripes With Go View Raw
@@ -167,7 +171,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/hold_position!/index.html b/docs/posts/hold_position!/index.html index efc8d1f..238408a 100644 --- a/docs/posts/hold_position!/index.html +++ b/docs/posts/hold_position!/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Hold Position! View Raw
@@ -66,7 +70,9 @@ winrestview(view) " restore our original view!

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/index.html b/docs/posts/index.html index 37b74cb..61f1d2e 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -13,12 +13,14 @@ peppe.rs - -
-
- ⟵ Back + +
+
+ Home + / + Posts -

Blog

+

Posts

diff --git a/docs/posts/my_setup/index.html b/docs/posts/my_setup/index.html index 2ce73b5..1436cb1 100644 --- a/docs/posts/my_setup/index.html +++ b/docs/posts/my_setup/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + My Setup View Raw
@@ -64,7 +68,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/nixOS/index.html b/docs/posts/nixOS/index.html index c9f6804..a68d26f 100644 --- a/docs/posts/nixOS/index.html +++ b/docs/posts/nixOS/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + NixOS View Raw
@@ -84,7 +88,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/onivim_sucks/index.html b/docs/posts/onivim_sucks/index.html index f8d416f..0a84759 100644 --- a/docs/posts/onivim_sucks/index.html +++ b/docs/posts/onivim_sucks/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Onivim Sucks View Raw
@@ -63,7 +67,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/pixel_art_in_GIMP/index.html b/docs/posts/pixel_art_in_GIMP/index.html index 18669c5..d01482b 100644 --- a/docs/posts/pixel_art_in_GIMP/index.html +++ b/docs/posts/pixel_art_in_GIMP/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Pixel Art In GIMP View Raw
@@ -107,7 +111,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/rapid_refactoring_with_vim/index.html b/docs/posts/rapid_refactoring_with_vim/index.html index 197a94f..6e2cf9a 100644 --- a/docs/posts/rapid_refactoring_with_vim/index.html +++ b/docs/posts/rapid_refactoring_with_vim/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Rapid Refactoring With Vim View Raw
@@ -147,7 +151,9 @@ BUFFER: json!( ... );

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/self-hosting_git/index.html b/docs/posts/self-hosting_git/index.html index 2653040..5e6be9b 100644 --- a/docs/posts/self-hosting_git/index.html +++ b/docs/posts/self-hosting_git/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Self-hosting Git View Raw
@@ -180,7 +184,9 @@ scp .git/description "$remote/description"

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/static_sites_with_bash/index.html b/docs/posts/static_sites_with_bash/index.html index 3e11cb3..183825d 100644 --- a/docs/posts/static_sites_with_bash/index.html +++ b/docs/posts/static_sites_with_bash/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Static Sites With Bash View Raw
@@ -85,7 +89,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/termux_tandem/index.html b/docs/posts/termux_tandem/index.html index f288668..f554303 100644 --- a/docs/posts/termux_tandem/index.html +++ b/docs/posts/termux_tandem/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Termux Tandem View Raw
@@ -76,7 +80,9 @@ mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/docs/posts/turing_complete_type_systems/index.html b/docs/posts/turing_complete_type_systems/index.html index fd35c80..6acf12a 100644 --- a/docs/posts/turing_complete_type_systems/index.html +++ b/docs/posts/turing_complete_type_systems/index.html @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + Turing Complete Type Systems View Raw
@@ -67,7 +71,9 @@

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

- ⟵ Back + Home + / + Posts View Raw
diff --git a/generate.sh b/generate.sh index ec8921f..cd35442 100755 --- a/generate.sh +++ b/generate.sh @@ -105,6 +105,15 @@ intro() { " } +breadcrumbs() { + # 1 - path + cat << EOF + Home + / + $1 +EOF +} + n_logo() { cat << EOF

n

@@ -147,12 +156,14 @@ echo echo "[+] INDEX" echo "$(n_logo)" >> ./docs/index.html -cat << EOF | tee -a ./docs/posts/index.html ./docs/art/index.html > /dev/null - -
-
- ⟵ Back +for p in Posts Art; do + cat << EOF | tee -a ./docs/${p,,}/index.html > /dev/null + +
+
+ $(breadcrumbs $p) EOF +done cat << EOF >> ./docs/index.html @@ -165,7 +176,7 @@ EOF # posts echo -ne " -

Blog

+

Posts

" >> ./docs/posts/index.html diff --git a/post.esh b/post.esh index 57dbab4..306162e 100644 --- a/post.esh +++ b/post.esh @@ -16,7 +16,11 @@
- ⟵ Back + Home + / + Posts + / + <%=$title%> View Raw
@@ -40,7 +44,9 @@ <% pandoc --quiet -t html --highlight-style monochrome "$file" %>
<%= "$intro" %> - ⟵ Back + Home + / + Posts View Raw
-- cgit v1.2.3