From 1cd1f4a76e4c6554b546adb8247a112c6bc7d1f2 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 2 Nov 2023 00:45:36 +0100 Subject: Added SEO plugin --- Gemfile | 27 +++++++++------------------ Gemfile.lock | 24 +++++++++++++++++++----- _config.yml | 7 +++++++ _layouts/base.html | 3 +-- curriculum-vitae.md | 12 ------------ 5 files changed, 36 insertions(+), 37 deletions(-) diff --git a/Gemfile b/Gemfile index ff2c342..191cd3b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,25 +1,16 @@ source "https://rubygems.org" -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! + gem "jekyll", "~> 4.3.2" -# 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 -# If you have any plugins, put them here! + group :jekyll_plugins do gem "jekyll-feed", "~> 0.12" + gem "jekyll-minifier" + gem "jekyll-sitemap" + gem "jekyll-seo-tag" end -# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem -# and associated library. +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data +# gem and associated library. platforms :mingw, :x64_mingw, :mswin, :jruby do gem "tzinfo", ">= 1", "< 3" gem "tzinfo-data" @@ -28,6 +19,6 @@ end # Performance-booster for watching directories on Windows gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] -# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem -# do not have a Java counterpart. +# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of +# the gem do not have a Java counterpart. gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] diff --git a/Gemfile.lock b/Gemfile.lock index edc3499..f1a3322 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,13 +5,16 @@ GEM public_suffix (>= 2.0.2, < 6.0) colorator (1.1.0) concurrent-ruby (1.2.2) + cssminify2 (2.0.1) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) + execjs (2.9.1) ffi (1.16.3) forwardable-extended (2.6.0) google-protobuf (3.24.4-x86_64-linux) + htmlcompressor (0.4.0) http_parser.rb (0.8.0) i18n (1.14.1) concurrent-ruby (~> 1.0) @@ -33,12 +36,23 @@ GEM webrick (~> 1.7) jekyll-feed (0.17.0) jekyll (>= 3.7, < 5.0) + jekyll-minifier (0.1.10) + cssminify2 (~> 2.0) + htmlcompressor (~> 0.4) + jekyll (>= 3.5) + json-minify (~> 0.0.3) + uglifier (~> 4.1) jekyll-sass-converter (3.0.0) sass-embedded (~> 1.54) jekyll-seo-tag (2.8.0) jekyll (>= 3.8, < 5.0) + jekyll-sitemap (1.4.0) + jekyll (>= 3.7, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) + json (2.6.3) + json-minify (0.0.3) + json (> 0) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) @@ -48,10 +62,6 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) - minima (2.5.1) - jekyll (>= 3.5, < 5.0) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) pathutil (0.16.2) forwardable-extended (~> 2.6) public_suffix (5.0.3) @@ -65,6 +75,8 @@ GEM google-protobuf (~> 3.23) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) + uglifier (4.2.0) + execjs (>= 0.3.0, < 3) unicode-display_width (2.5.0) webrick (1.8.1) @@ -75,7 +87,9 @@ DEPENDENCIES http_parser.rb (~> 0.6.0) jekyll (~> 4.3.2) jekyll-feed (~> 0.12) - minima (~> 2.5) + jekyll-minifier + jekyll-seo-tag + jekyll-sitemap tzinfo (>= 1, < 3) tzinfo-data wdm (~> 0.1.1) diff --git a/_config.yml b/_config.yml index 0764b33..fb2d976 100644 --- a/_config.yml +++ b/_config.yml @@ -13,3 +13,10 @@ highlighter: rouge plugins: - jekyll-feed + - jekyll-minifier + - jekyll-sitemap + - jekyll-seo-tag + +jekyll-minifier: + uglifier_args: + harmony: true diff --git a/_layouts/base.html b/_layouts/base.html index f02354e..aee5b90 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -11,8 +11,7 @@ {% else %}{{ site.title | escape }}{% endif %} - - + {% seo title=false %} diff --git a/curriculum-vitae.md b/curriculum-vitae.md index 2235bcf..90382ce 100644 --- a/curriculum-vitae.md +++ b/curriculum-vitae.md @@ -6,17 +6,6 @@ layout: page type: page --- - - **Mitja Felicijan** Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+CV+Contact)* @@ -81,4 +70,3 @@ Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+ - Development and maintenance of the project. - Code revision, testing and output. - Work on the enhancement suggested by the customers and fixes the bugs reported. - -- cgit v1.2.3