diff --git a/_includes/schedule.html b/_includes/schedule.html new file mode 100644 index 0000000..4e1017b --- /dev/null +++ b/_includes/schedule.html @@ -0,0 +1,131 @@ +{%comment%} +Setup course data + - Extract data by course + - Within course create units +{%endcomment%} + +{% assign course = site.data[page.course] %} +{% assign units = page.units | split: ',' %} +

{{page.title}}

+
+ +{%comment%} +Load all posts with site +{%endcomment%} + +{% assign posts = null | compact %} +{% assign posts = posts | concat:site.posts | concat:site.pages %} + +{%comment%} + +{%endcomment%} + +{% for unit in units %} +{% assign unitKey = "Unit " | append: unit %} +{% assign unitData = course[unitKey] %} +

+ {{ unitKey }}: {{ unitData.title }} +

+

{{ unitData.description }}

+ +{% assign start = unitData.start %} +{% assign end = unitData.end %} + +{%comment%} + +{%endcomment%} + + + + + + + + + + {%comment%} + + {%endcomment%} + + {% assign units = null | compact %} + {% assign sym = "|||" %} + {% assign deli = sym | compact %} + + {% for index in (start..end) -%} + {% assign plans = null | compact %} + {% assign hacks = null | compact %} + {% assign tangibles = null | compact %} + + + {%comment%} + + {%endcomment%} + + {% for post in posts %} + {% if post.courses[page.course] %} + {%comment%} + + {%endcomment%} + {% assign week = post.courses[page.course].week | tangibles: 0 %} + {% assign title = post.title | compact %} + {% assign url = post.url | compact %} + + {%comment%} + + {%endcomment%} + {% if week == index %} + + {%comment%} + + {%endcomment%} + {% if post.type == "plans" %} + {% assign plans = plans | unshift: title %} + {% assign plans = plans | unshift: url %} + {% elsif post.type == "hacks" %} + {% assign hacks = hacks | unshift: title %} + {% assign hacks = hacks | unshift: url %} + {% elsif post.type == "tangibles" %} + {% assign tangibles = tangibles | unshift: title %} + {% assign tangibles = tangibles | unshift: url %} + {% else %} + {% assign uk = uk | unshift: title %} + {% assign uk = uk | unshift: url %} + {% endif %} + + {% endif %} + {% endif %} + {% endfor %} + + {%comment%} + + {%endcomment%} + {% assign units = units | concat:plans | concat:deli | concat:hacks | concat:deli | concat:tangibles %} + + {%comment%} + + {%endcomment%} + + + + + + {% endfor %} + +
WeekPlansHacks(Todo)Tangibles
{{ index }} + {% for i in (0..units.size) -%} + {% if units.size == 0 %} + {% break %} + {% elsif units[0] == sym %} + + {% assign units = units | shift %} + {% else %} + - {{units[1]}}
+ {% assign units = units | shift | shift %} + {% endif %} + {% endfor %} +
+{% endfor %} diff --git a/_layouts/schedule.html b/_layouts/schedule.html new file mode 100644 index 0000000..4e1017b --- /dev/null +++ b/_layouts/schedule.html @@ -0,0 +1,131 @@ +{%comment%} +Setup course data + - Extract data by course + - Within course create units +{%endcomment%} + +{% assign course = site.data[page.course] %} +{% assign units = page.units | split: ',' %} +

{{page.title}}

+
+ +{%comment%} +Load all posts with site +{%endcomment%} + +{% assign posts = null | compact %} +{% assign posts = posts | concat:site.posts | concat:site.pages %} + +{%comment%} + +{%endcomment%} + +{% for unit in units %} +{% assign unitKey = "Unit " | append: unit %} +{% assign unitData = course[unitKey] %} +

+ {{ unitKey }}: {{ unitData.title }} +

+

{{ unitData.description }}

+ +{% assign start = unitData.start %} +{% assign end = unitData.end %} + +{%comment%} + +{%endcomment%} + + + + + + + + + + {%comment%} + + {%endcomment%} + + {% assign units = null | compact %} + {% assign sym = "|||" %} + {% assign deli = sym | compact %} + + {% for index in (start..end) -%} + {% assign plans = null | compact %} + {% assign hacks = null | compact %} + {% assign tangibles = null | compact %} + + + {%comment%} + + {%endcomment%} + + {% for post in posts %} + {% if post.courses[page.course] %} + {%comment%} + + {%endcomment%} + {% assign week = post.courses[page.course].week | tangibles: 0 %} + {% assign title = post.title | compact %} + {% assign url = post.url | compact %} + + {%comment%} + + {%endcomment%} + {% if week == index %} + + {%comment%} + + {%endcomment%} + {% if post.type == "plans" %} + {% assign plans = plans | unshift: title %} + {% assign plans = plans | unshift: url %} + {% elsif post.type == "hacks" %} + {% assign hacks = hacks | unshift: title %} + {% assign hacks = hacks | unshift: url %} + {% elsif post.type == "tangibles" %} + {% assign tangibles = tangibles | unshift: title %} + {% assign tangibles = tangibles | unshift: url %} + {% else %} + {% assign uk = uk | unshift: title %} + {% assign uk = uk | unshift: url %} + {% endif %} + + {% endif %} + {% endif %} + {% endfor %} + + {%comment%} + + {%endcomment%} + {% assign units = units | concat:plans | concat:deli | concat:hacks | concat:deli | concat:tangibles %} + + {%comment%} + + {%endcomment%} + + + + + + {% endfor %} + +
WeekPlansHacks(Todo)Tangibles
{{ index }} + {% for i in (0..units.size) -%} + {% if units.size == 0 %} + {% break %} + {% elsif units[0] == sym %} + + {% assign units = units | shift %} + {% else %} + - {{units[1]}}
+ {% assign units = units | shift | shift %} + {% endif %} + {% endfor %} +
+{% endfor %} diff --git a/_notebooks/Foundation/2024-09-05-emoji.ipynb b/_notebooks/Foundation/2024-09-05-emoji.ipynb index de72f29..0f90aac 100644 --- a/_notebooks/Foundation/2024-09-05-emoji.ipynb +++ b/_notebooks/Foundation/2024-09-05-emoji.ipynb @@ -25,7 +25,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 1, "metadata": {}, "outputs": [ { @@ -43,7 +43,18 @@ ] } ], - "source": [] + "source": [ + "from emoji import emojize \n", + "print(emojize(\":thumbs_up: Liverpool Football Club is the best soccer team in the world. :grinning_face:\"))\n", + "\n", + "print(\"\")\n", + "print(emojize(\"Liverpool FC is one of the most iconic football clubs in the world! :soccer_ball::red_circle:\"))\n", + "print(emojize(\"Known for their passionate fans, the famous Kop :musical_notes: and their rich history,\"))\n", + "print(emojize(\"They've won numerous Premier League :trophy: and Champions League titles :globe_showing_Europe-Africa:\"))\n", + "print(emojize(\"Legends like Steven Gerrard and Mohamed Salah have graced the pitch at Anfield :stadium:\"))\n", + "print(emojize(\"Where the atmosphere is electric! YNWA (You'll Never Walk Alone) :musical_note::fire: is not just a motto,\"))\n", + "print(\"It's a way of life for the Reds!\")" + ] }, { "cell_type": "markdown", diff --git a/index.md b/index.md index 512ea99..3012ca6 100644 --- a/index.md +++ b/index.md @@ -6,285 +6,121 @@ image: /images/mario_animation.png hide: true --- - - - -{% assign sprite_file = site.baseurl | append: page.image %} - -{% assign hash = site.data.mario_metadata %} - -{% assign pixels = 256 %} +

Home

+


- +

+ Unit 1: +

+

+ + + + + + + + -

- - - -

Hi, I'm

+ + + -
+ -
-about -
-
-My about me picture -
+ - + + - +
WeekPlansHacks(Todo)Tangibles
-

Hello! My name is Mihir Bapat. I am a Sophomore at Del Norte High School with heritage from India. The above picture is my Freeform picture. It covers the very things I find to be a part of myself. To start off, I am a massive sports fan. I like to watch and play Soccer and Cricket. I support Liverpool FC in Soccer, and the Mumbai Indians and team India in cricket. Finally, in my free time, I like to code, play the piano, and play Fortnite while listening to Spotify.


+ +
@@ -321,7 +157,9 @@ hide: true - -

Mini Project 1: Liverpool FC Blog

-

This is my first mini project Liverpool blog!

-
\ No newline at end of file +
+
+ +
+ +
diff --git a/liverpool-fc/index.html b/liverpool-fc/index.html index b0b2f9b..4f18180 100644 --- a/liverpool-fc/index.html +++ b/liverpool-fc/index.html @@ -22,7 +22,11 @@

Welcome to Liverpool FC

Welcome to Liverpool FC Fan Page

This is the home page. Navigate to the different sections using the menu above to explore the history, achievements, players, and contact details of Liverpool Football Club.

- + +
+ +
+