From 5b7702009999b950c406fef65ee2e94ef9540566 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 13:47:38 +0800 Subject: [PATCH 01/14] Update home page --- src/_layouts/home.html | 6 +++- .../2023-12-27-ADL-Sarcasm-Detection.md | 10 +++++++ .../2024-03-24-welcome-to-jekyll.markdown | 29 ------------------- src/_sass/minima/custom-styles.scss | 26 +++++++++++++---- 4 files changed, 35 insertions(+), 36 deletions(-) create mode 100644 src/_posts/2023-12-27-ADL-Sarcasm-Detection.md delete mode 100644 src/_posts/2024-03-24-welcome-to-jekyll.markdown diff --git a/src/_layouts/home.html b/src/_layouts/home.html index 89c6c41..d013f3f 100644 --- a/src/_layouts/home.html +++ b/src/_layouts/home.html @@ -96,7 +96,11 @@

Find Me

-

PROJECTS

+
+
+

PROJECTS

+
+
diff --git a/src/_posts/2023-12-27-ADL-Sarcasm-Detection.md b/src/_posts/2023-12-27-ADL-Sarcasm-Detection.md new file mode 100644 index 0000000..ff50d3e --- /dev/null +++ b/src/_posts/2023-12-27-ADL-Sarcasm-Detection.md @@ -0,0 +1,10 @@ +--- +layout: post +title: "ADL Project Sarcasm Detection" +date: 2023-12-27 21:40:34 +0800 +tags: +- AI +categories: projects +--- + +ADL Project 2023 Sarcasm Detection diff --git a/src/_posts/2024-03-24-welcome-to-jekyll.markdown b/src/_posts/2024-03-24-welcome-to-jekyll.markdown deleted file mode 100644 index 59fccf7..0000000 --- a/src/_posts/2024-03-24-welcome-to-jekyll.markdown +++ /dev/null @@ -1,29 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2024-03-24 21:40:34 +0800 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -Jekyll requires blog post files to be named according to the following format: - -`YEAR-MONTH-DAY-title.MARKUP` - -Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. - -[jekyll-docs]: https://jekyllrb.com/docs/home -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/src/_sass/minima/custom-styles.scss b/src/_sass/minima/custom-styles.scss index e3314d7..69c9eea 100644 --- a/src/_sass/minima/custom-styles.scss +++ b/src/_sass/minima/custom-styles.scss @@ -9,6 +9,7 @@ $sidebar-size: 300px; .background { background-color: #f0f0f0; + overflow: auto; } .wrapper-wide { @@ -129,10 +130,13 @@ $sidebar-size: 300px; font-style: italic; text-align: center; text-wrap: pretty; - font-size: 1.1rem; + font-size: 1rem; + font-weight: normal; + line-height: 1.5; span.quote { - font-weight: 800; + font-weight: 600; font-size: 1.5rem; + line-height: 0%; } } } @@ -140,14 +144,24 @@ $sidebar-size: 300px; .project-title-container { position: relative; - height: 6rem; - h1 { + height: 5rem; + .project-title-container-inner { + display: flex; + align-items: center; position: absolute; top: 0; left: 0; right: calc(-#{$sidebar-size} - #{$spacing-unit}); - text-align: center; - font-size: 5rem; + .line { + flex: 1; + border-top: 2px solid black; + box-sizing: border-box; + } + h1 { + text-align: center; + font-size: 4rem; + margin-bottom: 0; + } } } } From 5c0a8f8101958d4431f79705b1dc2b88a9befa04 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:29:45 +0800 Subject: [PATCH 02/14] Update gemfile --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index b2c5fd3..7c080da 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,6 @@ source "https://rubygems.org" # gem "jekyll", "~> 4.3.3" gem "github-pages", "~> 231", group: :jekyll_plugins # This is the default theme for new Jekyll sites. You may change this to anything you like. -gem "minima", "~> 2.5" # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. # gem "github-pages", group: :jekyll_plugins From 0a2c5ee3ba66fb018a9eea52b5df7c9472508c3c Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:31:45 +0800 Subject: [PATCH 03/14] Update gemfile again --- Gemfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 7c080da..5f914eb 100644 --- a/Gemfile +++ b/Gemfile @@ -6,13 +6,13 @@ source "https://rubygems.org" # bundle exec jekyll serve # # This will help ensure the proper Jekyll version is running. -# Happy Jekylling! +Happy Jekylling! # gem "jekyll", "~> 4.3.3" -gem "github-pages", "~> 231", group: :jekyll_plugins +# gem "github-pages", "~> 231", group: :jekyll_plugins # This is the default theme for new Jekyll sites. You may change this to anything you like. # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. -# gem "github-pages", group: :jekyll_plugins +gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.12" From 0f14338e3dbf6e7d845e0dcae8da93771137a69c Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:34:41 +0800 Subject: [PATCH 04/14] Fixed wrong uncomment --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5f914eb..e0e4708 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ source "https://rubygems.org" # bundle exec jekyll serve # # This will help ensure the proper Jekyll version is running. -Happy Jekylling! +# Happy Jekylling! # gem "jekyll", "~> 4.3.3" # gem "github-pages", "~> 231", group: :jekyll_plugins # This is the default theme for new Jekyll sites. You may change this to anything you like. From 67d591711ae6908d6173da38dcdd32ba021c034c Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:37:41 +0800 Subject: [PATCH 05/14] Test error --- src/_includes/svg_symbolz.html | 10 ++++++++++ src/assets/minima-social-icons.liquid | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/_includes/svg_symbolz.html diff --git a/src/_includes/svg_symbolz.html b/src/_includes/svg_symbolz.html new file mode 100644 index 0000000..9641890 --- /dev/null +++ b/src/_includes/svg_symbolz.html @@ -0,0 +1,10 @@ + + {%- include social-icons/{{ include.key }}.svg -%} + diff --git a/src/assets/minima-social-icons.liquid b/src/assets/minima-social-icons.liquid index d2951fa..0d5651d 100644 --- a/src/assets/minima-social-icons.liquid +++ b/src/assets/minima-social-icons.liquid @@ -11,8 +11,8 @@ permalink: /assets/minima-social-icons.svg {% for entry in site.minima.social_links %} {%- assign symbol_id = entry.platform -%} {%- unless symbol_id == "rss" -%} - {%- include svg_symbol.html key = symbol_id -%} + {%- include svg_symbolz.html key = symbol_id -%} {% endunless %} {%- endfor -%} - {%- include svg_symbol.html key = "rss" -%} + {%- include svg_symbolz.html key = "rss" -%} From 0c8a4350fcd51b0e13df8a9be05de0ed8781230d Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:54:08 +0800 Subject: [PATCH 06/14] test error --- Gemfile.lock | 3 +-- src/_includes/svg_symbolz.html | 10 ---------- src/assets/minima-social-icons.liquid | 4 ++-- 3 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 src/_includes/svg_symbolz.html diff --git a/Gemfile.lock b/Gemfile.lock index eaa6531..15b20dd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -268,10 +268,9 @@ PLATFORMS x64-mingw-ucrt DEPENDENCIES - github-pages (~> 231) + github-pages http_parser.rb (~> 0.6.0) jekyll-feed (~> 0.12) - minima (~> 2.5) tzinfo (>= 1, < 3) tzinfo-data wdm (~> 0.1.1) diff --git a/src/_includes/svg_symbolz.html b/src/_includes/svg_symbolz.html deleted file mode 100644 index 9641890..0000000 --- a/src/_includes/svg_symbolz.html +++ /dev/null @@ -1,10 +0,0 @@ - - {%- include social-icons/{{ include.key }}.svg -%} - diff --git a/src/assets/minima-social-icons.liquid b/src/assets/minima-social-icons.liquid index 0d5651d..e5a4740 100644 --- a/src/assets/minima-social-icons.liquid +++ b/src/assets/minima-social-icons.liquid @@ -11,8 +11,8 @@ permalink: /assets/minima-social-icons.svg {% for entry in site.minima.social_links %} {%- assign symbol_id = entry.platform -%} {%- unless symbol_id == "rss" -%} - {%- include svg_symbolz.html key = symbol_id -%} + {%- include head.html key = symbol_id -%} {% endunless %} {%- endfor -%} - {%- include svg_symbolz.html key = "rss" -%} + {%- include head.html key = "rss" -%} From 5a8ab5198f833a11f407cb9864d3a1df874b6236 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:55:55 +0800 Subject: [PATCH 07/14] Added missing theme dependency --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index e0e4708..3d1f54a 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,7 @@ source "https://rubygems.org" # gem "jekyll", "~> 4.3.3" # gem "github-pages", "~> 231", group: :jekyll_plugins # This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minima", "~> 2.5" # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. gem "github-pages", group: :jekyll_plugins From cb0961b25c7424c68cf5869f39f4c75a731d17a2 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 16:57:03 +0800 Subject: [PATCH 08/14] Revert change --- src/assets/minima-social-icons.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/minima-social-icons.liquid b/src/assets/minima-social-icons.liquid index e5a4740..d2951fa 100644 --- a/src/assets/minima-social-icons.liquid +++ b/src/assets/minima-social-icons.liquid @@ -11,8 +11,8 @@ permalink: /assets/minima-social-icons.svg {% for entry in site.minima.social_links %} {%- assign symbol_id = entry.platform -%} {%- unless symbol_id == "rss" -%} - {%- include head.html key = symbol_id -%} + {%- include svg_symbol.html key = symbol_id -%} {% endunless %} {%- endfor -%} - {%- include head.html key = "rss" -%} + {%- include svg_symbol.html key = "rss" -%} From aa6e26c3a6534fc32b7c8aa1c2b5f9e2df2d0456 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:00:40 +0800 Subject: [PATCH 09/14] Removed problem fild --- src/assets/minima-social-icons.liquid | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/assets/minima-social-icons.liquid diff --git a/src/assets/minima-social-icons.liquid b/src/assets/minima-social-icons.liquid deleted file mode 100644 index d2951fa..0000000 --- a/src/assets/minima-social-icons.liquid +++ /dev/null @@ -1,18 +0,0 @@ ---- -permalink: /assets/minima-social-icons.svg ---- - - -{% comment %} - Iterate through {{ site.minima.social_links }} and render platform related SVG-symbol - unless the platform is "rss" because we need the "rss" symbol for the `Subscribe` link - in the footer and therefore inject the "rss" icon outside the iteration loop. -{% endcomment %} -{% for entry in site.minima.social_links %} - {%- assign symbol_id = entry.platform -%} - {%- unless symbol_id == "rss" -%} - {%- include svg_symbol.html key = symbol_id -%} - {% endunless %} -{%- endfor -%} - {%- include svg_symbol.html key = "rss" -%} - From 14c7132b912bbddcbe322d452e334fb98155a8cb Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:02:32 +0800 Subject: [PATCH 10/14] Reverted change --- src/assets/minima-social-icons.liquid | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/assets/minima-social-icons.liquid diff --git a/src/assets/minima-social-icons.liquid b/src/assets/minima-social-icons.liquid new file mode 100644 index 0000000..d2951fa --- /dev/null +++ b/src/assets/minima-social-icons.liquid @@ -0,0 +1,18 @@ +--- +permalink: /assets/minima-social-icons.svg +--- + + +{% comment %} + Iterate through {{ site.minima.social_links }} and render platform related SVG-symbol + unless the platform is "rss" because we need the "rss" symbol for the `Subscribe` link + in the footer and therefore inject the "rss" icon outside the iteration loop. +{% endcomment %} +{% for entry in site.minima.social_links %} + {%- assign symbol_id = entry.platform -%} + {%- unless symbol_id == "rss" -%} + {%- include svg_symbol.html key = symbol_id -%} + {% endunless %} +{%- endfor -%} + {%- include svg_symbol.html key = "rss" -%} + From f7541bbf7e9eba24e5600d97f19eec8456187b7c Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:06:04 +0800 Subject: [PATCH 11/14] Update gemfile --- Gemfile.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile.lock b/Gemfile.lock index 15b20dd..c8b35c3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -271,6 +271,7 @@ DEPENDENCIES github-pages http_parser.rb (~> 0.6.0) jekyll-feed (~> 0.12) + minima (~> 2.5) tzinfo (>= 1, < 3) tzinfo-data wdm (~> 0.1.1) From 9545bed72ff5a317a6f8511d020cc9939ac232b6 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:07:27 +0800 Subject: [PATCH 12/14] Create jekyll.yml --- .github/workflows/jekyll.yml | 64 ++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/jekyll.yml diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..f574bec --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,64 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["v3"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From de8d33baff0460c7ef07015ade728ac32937a669 Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:09:33 +0800 Subject: [PATCH 13/14] Add bundle lock platform for github actions --- Gemfile.lock | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index c8b35c3..dcb19d5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -37,6 +37,7 @@ GEM faraday-net_http (>= 2.0, < 3.2) faraday-net_http (3.1.0) net-http + ffi (1.16.3) ffi (1.16.3-x64-mingw-ucrt) forwardable-extended (2.6.0) gemoji (4.1.0) @@ -224,6 +225,8 @@ GEM uri nokogiri (1.16.3-x64-mingw-ucrt) racc (~> 1.4) + nokogiri (1.16.3-x86_64-linux) + racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) sawyer (~> 0.9) @@ -258,6 +261,7 @@ GEM tzinfo (>= 1.0.0) unf (0.1.4) unf_ext + unf_ext (0.0.9.1) unf_ext (0.0.9.1-x64-mingw-ucrt) unicode-display_width (1.8.0) uri (0.13.0) @@ -266,6 +270,7 @@ GEM PLATFORMS x64-mingw-ucrt + x86_64-linux DEPENDENCIES github-pages From 12dec954353732f780fc487c59864252d4965e8f Mon Sep 17 00:00:00 2001 From: Seah Ying Xiang Date: Tue, 17 Sep 2024 17:17:57 +0800 Subject: [PATCH 14/14] Fixed styles --- src/_sass/minima/custom-styles.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_sass/minima/custom-styles.scss b/src/_sass/minima/custom-styles.scss index 69c9eea..fb0fa6a 100644 --- a/src/_sass/minima/custom-styles.scss +++ b/src/_sass/minima/custom-styles.scss @@ -168,6 +168,8 @@ $sidebar-size: 300px; .sidebar { flex: 0 0 $sidebar-size; + position: sticky; + top: 0; h2 { font-size: 2rem; margin-bottom: $spacing-unit / 4;