Skip to content

Commit

Permalink
Merge branch 'v3' of https://github.com/seahyx/seahyx.github.io into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
seahyx committed Sep 19, 2024
2 parents 4f1be60 + 12dec95 commit 80f7cdc
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 39 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ source "https://rubygems.org"
# This will help ensure the proper Jekyll version is running.
# 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.
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
gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
Expand Down
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -266,9 +270,10 @@ GEM

PLATFORMS
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
github-pages (~> 231)
github-pages
http_parser.rb (~> 0.6.0)
jekyll-feed (~> 0.12)
minima (~> 2.5)
Expand Down
6 changes: 5 additions & 1 deletion src/_layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ <h3>Find Me</h3>
</div>
</div>
<div class="project-title-container">
<h1>PROJECTS</h1>
<div class="project-title-container-inner">
<div class="line"></div>
<h1>PROJECTS</h1>
<div class="line"></div>
</div>
</div>
<div class="projects"></div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions src/_posts/2023-12-27-ADL-Sarcasm-Detection.md
Original file line number Diff line number Diff line change
@@ -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
29 changes: 0 additions & 29 deletions src/_posts/2024-03-24-welcome-to-jekyll.markdown

This file was deleted.

28 changes: 22 additions & 6 deletions src/_sass/minima/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $sidebar-size: 300px;

.background {
background-color: #f0f0f0;
overflow: auto;
}

.wrapper-wide {
Expand Down Expand Up @@ -129,31 +130,46 @@ $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%;
}
}
}
}

.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;
}
}
}
}

.sidebar {
flex: 0 0 $sidebar-size;
position: sticky;
top: 0;
h2 {
font-size: 2rem;
margin-bottom: $spacing-unit / 4;
Expand Down

0 comments on commit 80f7cdc

Please sign in to comment.