From 3a8af9e3c6fd89fb70541350e06af691c28908cf Mon Sep 17 00:00:00 2001 From: Deep0Thinking Date: Mon, 22 Jan 2024 23:45:54 -0800 Subject: [PATCH] Fix sticky header transition and hide site header on scroll --- .github/workflows/jekyll.yml | 75 ++++------- _site/2022/11/28/How-to-post-posts.html | 163 ++++++++++++++++-------- _site/2024/01/20/My-first-post.html | 95 ++++++++++++++ _site/README.md | 62 +++++---- _site/about.html | 42 +++--- _site/all-tags.html | 30 ++--- _site/archive.html | 68 +++++----- _site/assets/css/style.css | 9 +- _site/assets/css/style.css.map | 2 +- _site/assets/js/custom-styles.js | 52 ++++++-- _site/index.html | 59 +++++---- _site/tag/WoW.html | 91 +++++++++---- _site/tag/go.html | 91 +++++++++---- _site/tag/let's.html | 66 ++++++---- _site/tag/this-is-a-tag.html | 66 ++++++---- _site/tagpage.html | 31 ++--- 16 files changed, 624 insertions(+), 378 deletions(-) create mode 100644 _site/2024/01/20/My-first-post.html diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 9164159..0a70fd0 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -1,82 +1,57 @@ -# 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 "_site" branch on GitHub Pages on: - # Runs on pushes targeting the default branch push: branches: ["main"] - paths: - - "_site/**" # Runs only when there are changes in the 'site' directory + paths-ignore: + - "_site/**" pull_request: branches: ["main"] - paths: + paths-ignore: - "_site/**" - - # 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: write 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 - with: - ref: "main" - - name: Setup Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + - uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 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: 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 + ruby-version: '3.0' # Ensure you use Ruby 3.0 or above + bundler-cache: true # Automatically install gems and cache them + + - name: Print Ruby and Bundler version + run: | + ruby -v + bundler -v + + - name: Build Jekyll site + run: bundle exec jekyll build - # Deployment job deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest needs: build + runs-on: ubuntu-latest steps: - - name: Checkout main branch - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 with: - ref: "main" - - name: Copy _site contents - run: | - cp -r _site/ Gemfile _config.yml /tmp/ - git checkout -b _site - rm -rf * - cp -r /tmp/_site/* /tmp/Gemfile /tmp/_config.yml ./ - git add --all - git config user.name github-actions - git config user.email github-actions@github.com - git commit -m "update _site content" - git push --force origin _site + ruby-version: '3.0' + bundler-cache: true + - name: Deploy to GitHub Pages uses: jeffreytse/jekyll-deploy-action@v0.5.1 with: diff --git a/_site/2022/11/28/How-to-post-posts.html b/_site/2022/11/28/How-to-post-posts.html index 6ff8fd2..c0784e4 100644 --- a/_site/2022/11/28/How-to-post-posts.html +++ b/_site/2022/11/28/How-to-post-posts.html @@ -1,5 +1,5 @@ - + @@ -27,19 +27,7 @@ - - -