diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..bdea30c85 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches-ignore: + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.3' + bundler-cache: true + + - name: Build site + run: bundle exec jekyll build --config _config.yml + env: + BUNDLE_PATH: vendor/bundle + + - name: Check HTML + run: | + bundle exec htmlproofer ./_site \ + --disable-external \ + --ignore-urls "/localhost/" \ + --allow-hash-href + continue-on-error: true diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..b9b3b0de0 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.11 diff --git a/Gemfile b/Gemfile index 1498e641c..d37e11d5e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,7 @@ source "https://rubygems.org" gem "github-pages", group: :jekyll_plugins +gem "jekyll-seo-tag" +gem "jekyll-sitemap" +gem "jekyll-feed" gem 'wdm', '>= 0.1.0' if Gem.win_platform? \ No newline at end of file diff --git a/_config.yml b/_config.yml index 1d96b5394..92d107004 100644 --- a/_config.yml +++ b/_config.yml @@ -12,6 +12,9 @@ open_new_tab : true # Opens external URLs in ### Plugins ### plugins: - jemoji + - jekyll-seo-tag + - jekyll-sitemap + - jekyll-feed ### Navbar Settings ### @@ -61,6 +64,9 @@ collections: research: output: true permalink: /research/:name + trips: + output: true + permalink: /trips/:name elements: # For Documentation Only output: true # For Documentation Only @@ -99,6 +105,11 @@ defaults: type: "research" values: layout: "page" + - scope: + path: "" + type: "trips" + values: + layout: "trip" - scope: # For Documentation Only path: "" # For Documentation Only type: "elements" # For Documentation Only @@ -117,3 +128,5 @@ exclude: - CONTRIBUTING.md - LICENSE - "*.log" + - build/ + - vendor/ diff --git a/_data/social-media.yml b/_data/social-media.yml index 28934e475..8131bee9e 100644 --- a/_data/social-media.yml +++ b/_data/social-media.yml @@ -22,22 +22,22 @@ email: # color : 3b5998 github: - url : https://www.github.com/ + url : https://www.github.com/vishalgattani icon : fab fa-github color : 333333 gitlab: - url : https://gitlab.com/ + url : https://gitlab.com/vishalgattani icon : fab fa-gitlab color : fca326 instagram: - url : https://www.instagram.com/ + url : https://www.instagram.com/vishalgattani icon : fab fa-instagram color : 405de6 linkedin: - url : https://www.linkedin.com/in/ + url : https://www.linkedin.com/in/vishalgattani icon : fab fa-linkedin-in color : 007bb5 diff --git a/_includes/blog/tags.html b/_includes/blog/tags.html index 23e66082e..d584dfd0d 100644 --- a/_includes/blog/tags.html +++ b/_includes/blog/tags.html @@ -1,17 +1,41 @@ - -{%- assign tags = blank -%} + +{%- assign all_tags = "" | split: "" -%} {%- for post in site.posts -%} - {%- assign post_tags = post.tags | join:'|' | append:'|' -%} - {%- if post_tags != '|' -%} - {%- assign tags = tags | append:post_tags -%} - {%- endif -%} + {%- for tag in post.tags -%} + {%- assign all_tags = all_tags | push: tag -%} + {%- endfor -%} {%- endfor -%} -{%- assign tags = tags | split:'|' | uniq | sort -%} +{%- assign unique_tags = all_tags | uniq | sort -%} + + +