From e47026a5f39d7e6de7cd9b49255215dc98f69124 Mon Sep 17 00:00:00 2001 From: Victor Ferreira Date: Thu, 28 Dec 2023 11:40:41 -0300 Subject: [PATCH 1/2] added bottom navigation for previous and next lessons --- _2020/command-line.md | 2 ++ _2020/course-shell.md | 1 + _2020/data-wrangling.md | 2 ++ _2020/debugging-profiling.md | 2 ++ _2020/editors.md | 2 ++ _2020/metaprogramming.md | 2 ++ _2020/potpourri.md | 2 ++ _2020/qa.md | 1 + _2020/security.md | 2 ++ _2020/shell-tools.md | 2 ++ _2020/version-control.md | 2 ++ _layouts/lecture.html | 10 +++++++++- static/css/main.css | 16 ++++++++++++++++ 13 files changed, 45 insertions(+), 1 deletion(-) diff --git a/_2020/command-line.md b/_2020/command-line.md index c86bdfc..ee0927c 100644 --- a/_2020/command-line.md +++ b/_2020/command-line.md @@ -3,6 +3,8 @@ layout: lecture title: "Command-line Environment" date: 2020-01-21 ready: true +previous_lesson: "/2020/data-wrangling" +next_lesson: "/2020/version-control" video: aspect: 56.25 id: e8BO_dYxk5c diff --git a/_2020/course-shell.md b/_2020/course-shell.md index 3ee77c5..991ab2e 100644 --- a/_2020/course-shell.md +++ b/_2020/course-shell.md @@ -3,6 +3,7 @@ layout: lecture title: "Course overview + the shell" date: 2020-01-13 ready: true +next_lesson: "/2020/shell-tools" video: aspect: 56.25 id: Z56Jmr9Z34Q diff --git a/_2020/data-wrangling.md b/_2020/data-wrangling.md index 2f67695..b04fb90 100644 --- a/_2020/data-wrangling.md +++ b/_2020/data-wrangling.md @@ -3,6 +3,8 @@ layout: lecture title: "Data Wrangling" date: 2020-01-16 ready: true +previous_lesson: "/2020/editors" +next_lesson: "/2020/command-line" video: aspect: 56.25 id: sz_dsktIjt4 diff --git a/_2020/debugging-profiling.md b/_2020/debugging-profiling.md index b7cb683..b8ff43b 100644 --- a/_2020/debugging-profiling.md +++ b/_2020/debugging-profiling.md @@ -3,6 +3,8 @@ layout: lecture title: "Debugging and Profiling" date: 2020-01-23 ready: true +previous_lesson: "/2020/version-control" +next_lesson: "/2020/metaprogramming" video: aspect: 56.25 id: l812pUnKxME diff --git a/_2020/editors.md b/_2020/editors.md index 656836e..f06900d 100644 --- a/_2020/editors.md +++ b/_2020/editors.md @@ -3,6 +3,8 @@ layout: lecture title: "Editors (Vim)" date: 2020-01-15 ready: true +previous_lesson: "/2020/shell-tools" +next_lesson: "/2020/data-wrangling" video: aspect: 56.25 id: a6Q8Na575qc diff --git a/_2020/metaprogramming.md b/_2020/metaprogramming.md index 827fb31..594704e 100644 --- a/_2020/metaprogramming.md +++ b/_2020/metaprogramming.md @@ -4,6 +4,8 @@ title: "Metaprogramming" details: build systems, dependency management, testing, CI date: 2020-01-27 ready: true +previous_lesson: "/2020/debugging-profiling" +next_lesson: "/2020/security" video: aspect: 56.25 id: _Ms1Z4xfqv4 diff --git a/_2020/potpourri.md b/_2020/potpourri.md index 5636056..66b4ee7 100644 --- a/_2020/potpourri.md +++ b/_2020/potpourri.md @@ -3,6 +3,8 @@ layout: lecture title: "Potpourri" date: 2020-01-29 ready: true +previous_lesson: "/2020/security" +next_lesson: "/2020/qa" video: aspect: 56.25 id: JZDt-PRq0uo diff --git a/_2020/qa.md b/_2020/qa.md index 52fa8fd..f4e9b8b 100644 --- a/_2020/qa.md +++ b/_2020/qa.md @@ -3,6 +3,7 @@ layout: lecture title: "Q&A" date: 2020-01-30 ready: true +previous_lesson: "/2020/potpourri" video: aspect: 56.25 id: Wz50FvGG6xU diff --git a/_2020/security.md b/_2020/security.md index f81ee52..e6dfff7 100644 --- a/_2020/security.md +++ b/_2020/security.md @@ -3,6 +3,8 @@ layout: lecture title: "Security and Cryptography" date: 2020-01-28 ready: true +previous_lesson: "/2020/metaprogramming" +next_lesson: "/2020/potpourri" video: aspect: 56.25 id: tjwobAmnKTo diff --git a/_2020/shell-tools.md b/_2020/shell-tools.md index 7c65c78..6edb8d2 100644 --- a/_2020/shell-tools.md +++ b/_2020/shell-tools.md @@ -3,6 +3,8 @@ layout: lecture title: "Shell Tools and Scripting" date: 2020-01-14 ready: true +previous_lesson: "/2020/course-shell" +next_lesson: "/2020/editors" video: aspect: 56.25 id: kgII-YWo3Zw diff --git a/_2020/version-control.md b/_2020/version-control.md index 7e01972..d59153f 100644 --- a/_2020/version-control.md +++ b/_2020/version-control.md @@ -3,6 +3,8 @@ layout: lecture title: "Version Control (Git)" date: 2020-01-22 ready: true +previous_lesson: "/2020/command-line" +next_lesson: "/2020/debugging-profiling" video: aspect: 56.25 id: 2sjqTHE0zok diff --git a/_layouts/lecture.html b/_layouts/lecture.html index bc1a17a..a8953a7 100644 --- a/_layouts/lecture.html +++ b/_layouts/lecture.html @@ -14,7 +14,15 @@

{{ page.title }}{% if page.subtitle %} {{ content }} -
+
+ +
+ {% if page.previous_lesson %} + Previous + {% endif %} {% if page.next_lesson %} + Next +{% endif %} +

Edit this page.

diff --git a/static/css/main.css b/static/css/main.css index 99900eb..62ed366 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -377,4 +377,20 @@ input[type=checkbox]:checked ~ .menu-label:after { a[href^="https://"]::after, a[href^="http://"]::after { content: "("attr(href)")"; font-family: monospace; margin: 0 .25em; } + +.bottom_nav { + display: flex; + margin-bottom: 1.5rem; +} + +.previous_lesson::before { + content: "< "; +} + +.next_lesson { + margin-left: auto; +} + +.next_lesson::after { + content: " >"; } From ef8dd8a10356fec4ba59a169352b64f4d4d82aa6 Mon Sep 17 00:00:00 2001 From: Victor Ferreira Date: Wed, 31 Jan 2024 16:27:22 -0300 Subject: [PATCH 2/2] Update main.css --- static/css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/static/css/main.css b/static/css/main.css index 62ed366..330d4d6 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -377,6 +377,7 @@ input[type=checkbox]:checked ~ .menu-label:after { a[href^="https://"]::after, a[href^="http://"]::after { content: "("attr(href)")"; font-family: monospace; margin: 0 .25em; } +} .bottom_nav { display: flex;