diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 00000000000..61f2d803bcc --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,65 @@ +# 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: ["main"] + + # 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 + # https://github.com/ruby/setup-ruby/releases/tag/v1.207.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 + 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 diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml new file mode 100644 index 00000000000..144d91a2319 --- /dev/null +++ b/.github/workflows/pages-deploy.yml @@ -0,0 +1,25 @@ +name: Build and Deploy Chirpy + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' + bundler-cache: true + - run: | + bundle install + bundle exec jekyll build -d _site + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages diff --git a/Gemfile b/Gemfile index e5415748ad5..38fdef42884 100644 --- a/Gemfile +++ b/Gemfile @@ -1,14 +1,11 @@ -# frozen_string_literal: true - source "https://rubygems.org" -gemspec - -gem "html-proofer", "~> 5.0", group: :test +gem "jekyll", "~> 4.3" +gem "jekyll-theme-chirpy", "~> 7.0" -platforms :mingw, :x64_mingw, :mswin, :jruby do - gem "tzinfo", ">= 1", "< 3" - gem "tzinfo-data" +group :jekyll_plugins do + gem "jekyll-paginate" + gem "jekyll-seo-tag" + gem "jekyll-feed" + gem "jekyll-archives" end - -gem "wdm", "~> 0.2.0", :platforms => [:mingw, :x64_mingw, :mswin] diff --git a/_config.yml b/_config.yml index d727796fe11..2f04041e6a5 100644 --- a/_config.yml +++ b/_config.yml @@ -1,50 +1,25 @@ -# The Site Configuration - -# Import the theme theme: jekyll-theme-chirpy -# The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm -# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed, -# otherwise, the layout language will use the default value of 'en'. -lang: en - -# Change to your timezone › https://zones.arilyn.cc -timezone: Asia/Shanghai - -# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md -# ↓ -------------------------- - -title: Chirpy # the main title - -tagline: A text-focused Jekyll theme # it will display as the subtitle +lang: ko +timezone: Asia/Seoul -description: >- # used by seo meta and the atom feed - A minimal, responsive and feature-rich Jekyll theme for technical writing. +title: Knuckles Doe +tagline: 개인 공부 및 기록용 블로그 +description: 개인 학습과 기록을 위한 익명의 블로그입니다. -# Fill in the protocol & hostname for your site. -# E.g. 'https://username.github.io', note that it does not end with a '/'. -url: "" +url: "https://dayforged.github.io/" github: - username: github_username # change to your GitHub username + username: dayforged # change to your GitHub username twitter: username: twitter_username # change to your Twitter username social: - # Change to your full name. - # It will be displayed as the default author of the posts and the copyright owner in the Footer - name: your_full_name - email: example@domain.com # change to your email address - links: - # The first element serves as the copyright owner's link - - https://twitter.com/username # change to your Twitter homepage - - https://github.com/username # change to your GitHub homepage - # Uncomment below to add more social links - # - https://www.facebook.com/username - # - https://www.linkedin.com/in/username - -# Site Verification Settings + name: "너클즈" # 이름 표시 안 함 + email: "" # 이메일 표시 안 함 + links: [] # 소셜 링크 완전 비활성화 + webmaster_verifications: google: # fill in your Google verification code bing: # fill in your Bing verification code @@ -98,11 +73,8 @@ theme_mode: # [light | dark] cdn: "https://chirpy-img.netlify.app" # the avatar on sidebar, support local or CORS resources -avatar: "/commons/avatar.jpg" - -# The URL of the site-wide social preview image used in SEO `og:image` meta tag. -# It can be overridden by a customized `page.image` in front matter. -social_preview_image: # string, local or CORS resources +avatar: "https://dayforged.github.io/assets/knuckles.jpg" +social_preview_image: "https://dayforged.github.io/assets/knuckles.jpg" # boolean type, the global switch for TOC in posts. toc: true @@ -224,3 +196,7 @@ jekyll-archives: permalinks: tag: /tags/:name/ category: /categories/:name/ + +include: + - assets/knuckles.jpg + diff --git a/_layouts/default.html b/_layouts/default.html index a55bfefe9ab..32710c20078 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -83,4 +83,17 @@ {% include_cached search-loader.html lang=lang %} + + + + diff --git a/_sass/custom.scss b/_sass/custom.scss new file mode 100644 index 00000000000..fb73289549b --- /dev/null +++ b/_sass/custom.scss @@ -0,0 +1,12 @@ +#avatar a { + pointer-events: none; +} + +#avatar { + display: flex !important; + justify-content: center !important; + align-items: center !important; + margin: 0 auto !important; + padding: 0 !important; + width: 100%; +} diff --git a/_sass/main.scss b/_sass/main.scss index 3bbb70d6515..009cc473ea0 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -2,3 +2,4 @@ @forward 'components'; @forward 'layout'; @forward 'pages'; +@forward 'custom'; diff --git a/assets/img/favicons/android-chrome-192x192.png b/assets/img/favicons/android-chrome-192x192.png index a949d2fe5d1..c2a74a80b0e 100644 Binary files a/assets/img/favicons/android-chrome-192x192.png and b/assets/img/favicons/android-chrome-192x192.png differ diff --git a/assets/img/favicons/android-chrome-512x512.png b/assets/img/favicons/android-chrome-512x512.png index a0cdd950b35..1fe96ef825b 100644 Binary files a/assets/img/favicons/android-chrome-512x512.png and b/assets/img/favicons/android-chrome-512x512.png differ diff --git a/assets/img/favicons/apple-touch-icon.png b/assets/img/favicons/apple-touch-icon.png index 648097f4fc7..79af0e8cf10 100644 Binary files a/assets/img/favicons/apple-touch-icon.png and b/assets/img/favicons/apple-touch-icon.png differ diff --git a/assets/img/favicons/favicon-16x16.png b/assets/img/favicons/favicon-16x16.png index f44237a9a42..10f3702538e 100644 Binary files a/assets/img/favicons/favicon-16x16.png and b/assets/img/favicons/favicon-16x16.png differ diff --git a/assets/img/favicons/favicon-32x32.png b/assets/img/favicons/favicon-32x32.png index d5d021d85c8..93820c7a0db 100644 Binary files a/assets/img/favicons/favicon-32x32.png and b/assets/img/favicons/favicon-32x32.png differ diff --git a/assets/img/favicons/favicon.ico b/assets/img/favicons/favicon.ico index 561156802e6..fb171c8feb3 100644 Binary files a/assets/img/favicons/favicon.ico and b/assets/img/favicons/favicon.ico differ diff --git a/assets/knuckles.jpg b/assets/knuckles.jpg new file mode 100644 index 00000000000..052bcb82014 Binary files /dev/null and b/assets/knuckles.jpg differ