diff --git a/Gemfile b/Gemfile index a0d06b746f..2b7aae3241 100644 --- a/Gemfile +++ b/Gemfile @@ -12,6 +12,7 @@ source "https://rubygems.org" # If you have any plugins, put them here! group :jekyll_plugins do gem "github-pages" + gem 'jekyll-seo-tag' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 6b72210160..a0207b52cc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -261,6 +261,7 @@ DEPENDENCIES dotenv github-pages html-proofer + jekyll-seo-tag tzinfo-data BUNDLED WITH diff --git a/_config.yml b/_config.yml index a7ccb77ce6..1aab8d63cf 100644 --- a/_config.yml +++ b/_config.yml @@ -58,6 +58,10 @@ links: # Link to the Amazon store. amazon: https://www.amazon.com/shop/thecodingtrain +# SEO data for twitter +twitter: + username: thecodingtrain + # --- Build Settings --- # Use Kramdown as the preferred Markdown parser. @@ -91,6 +95,7 @@ sass: { sass_dir: "assets/css" } # Use jekyll-redirect-from to allow redirections plugins: - jekyll-redirect-from + - jekyll-seo-tag # --- Jekyll Locations --- layouts_dir: _jekyll/layouts diff --git a/_jekyll/includes/2-base/head.html b/_jekyll/includes/2-base/head.html index 35af184df6..258cb94369 100644 --- a/_jekyll/includes/2-base/head.html +++ b/_jekyll/includes/2-base/head.html @@ -55,4 +55,9 @@ - \ No newline at end of file + + +{% comment %} +Data for SEO for easier sharing and being searched +{% endcomment %} +{% seo %}