diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll.yml similarity index 58% rename from .github/workflows/jekyll-gh-pages.yml rename to .github/workflows/jekyll.yml index 0ebd768..31e91a1 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll.yml @@ -1,5 +1,10 @@ +# 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 with GitHub Pages dependencies preinstalled +name: Deploy Jekyll site to Pages on: # Runs on pushes targeting the default branch @@ -28,14 +33,22 @@ jobs: 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 - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site + # 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 diff --git a/Gemfile b/Gemfile index fb59f0e..c09eb4d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,10 +1,13 @@ # frozen_string_literal: true - source "https://rubygems.org" - -gemspec - -gem "jekyll", "~> 4.3" +gem "jekyll" gem "jekyll-seo-tag" gem "jekyll-sitemap" gem "jekyll-feed" +gem "jekyll-paginate" +gem "jekyll-redirect-from" +gem "jekyll-commonmark" +gem "jekyll-include-cache" +gem "jemoji" +gem "tzinfo-data" +gem "wdm" diff --git a/_config.yml b/_config.yml index 880cd35..58bd682 100644 --- a/_config.yml +++ b/_config.yml @@ -1,19 +1,15 @@ -title: "Im-Jekyll-Theme" -email: "imswarnil@gmail.com" -description: "A new Jekyll theme by Swarnil" -baseurl: "/Im-Jekyll-Theme" # the subpath of your site -url: "https://imswarnil.com" # the base hostname & protocol for your site -twitter_username: jekyllrb -github_username: jekyll -primary_color: "#E53935" -logo: "/assets/logo.png" -# Build settings -plugins: - - jekyll-seo-tag - - jekyll-sitemap - - jekyll-feed +# Site configuration +# 1. Files excluded from Jekyll builds +# 2. Installed Gems +# 3. Gem settings +# 4. Jekyll settings +# 5. Collections +# 6. Jekyll collections settings +# 7. Site settings +# 8. Site favicons & manifest icons +# 9. Site navigation -# Exclude from processing +# 1. Files excluded from Jekyll builds exclude: - Gemfile - Gemfile.lock diff --git a/_data/navigation.yml b/_data/navigation.yml index e827714..84793b1 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -5,7 +5,7 @@ navbar: link: /about/ icon: fa-file - name: Elements - link: /elements/ + link: /elements - name: Layouts link: /# dropdown: diff --git a/_includes/head.html b/_includes/head.html index a5d0977..89ea0be 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -22,7 +22,10 @@ - + + + + {% if site.favicons or site.avatarurl %}{% include site-favicons.html %}{% endif %} diff --git a/_includes/nav-header.html b/_includes/nav-header.html index 95e5c8e..602c3d3 100644 --- a/_includes/nav-header.html +++ b/_includes/nav-header.html @@ -2,7 +2,7 @@