From 7699a15973bc04aca093246ad6e268ad8ab39865 Mon Sep 17 00:00:00 2001 From: gd-codes <45459312+gd-codes@users.noreply.github.com> Date: Thu, 14 Dec 2023 17:47:58 +0530 Subject: [PATCH] Add TOC plugin and use relative links --- Gemfile | 1 + Gemfile.lock | 13 ++++++++++++- _config.yml | 5 +++++ _includes/featuredbox.html | 10 +++++----- _includes/postbox.html | 10 +++++----- _layouts/default.html | 2 +- _layouts/post.html | 8 ++++---- index.html | 2 +- 8 files changed, 34 insertions(+), 17 deletions(-) diff --git a/Gemfile b/Gemfile index 8a35af0..2c53465 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ group :jekyll_plugins do gem 'jekyll-paginate' gem 'jekyll-seo-tag' gem 'jekyll-archives' + gem 'jekyll-toc' gem 'kramdown' gem 'rouge' end diff --git a/Gemfile.lock b/Gemfile.lock index c9d0056..a64bbc3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -42,6 +42,9 @@ GEM jekyll (>= 3.8, < 5.0) jekyll-sitemap (1.4.0) jekyll (>= 3.7, < 5.0) + jekyll-toc (0.18.0) + jekyll (>= 3.9) + nokogiri (~> 1.12) jekyll-watch (2.2.1) listen (~> 3.0) kramdown (2.3.1) @@ -53,9 +56,16 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) + mini_portile2 (2.8.4) + nokogiri (1.15.4) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + nokogiri (1.15.4-x64-mingw32) + racc (~> 1.4) pathutil (0.16.2) forwardable-extended (~> 2.6) public_suffix (4.0.6) + racc (1.7.1) rb-fsevent (0.10.4) rb-inotify (0.10.1) ffi (~> 1.0) @@ -81,9 +91,10 @@ DEPENDENCIES jekyll-paginate jekyll-seo-tag jekyll-sitemap + jekyll-toc kramdown rouge webrick (~> 1.7) BUNDLED WITH - 2.2.3 + 2.2.26 diff --git a/_config.yml b/_config.yml index d17e2fa..5fd9f4d 100644 --- a/_config.yml +++ b/_config.yml @@ -4,6 +4,7 @@ title: "AstroThoughts" description: "Blog of the Space Technology and Astronomy Cell" logo: 'assets/images/logo.png' favicon: 'assets/images/logo.png' +url: 'https://stac.iitmandi.co.in' baseurl: /blog google_analytics: 'UA-46278016-1' disqus: 'demowebsite' @@ -71,6 +72,7 @@ plugins: - jekyll-feed - jekyll-seo-tag - jekyll-archives + - jekyll-toc # Archives jekyll-archives: @@ -103,3 +105,6 @@ adsense-data-ad-slot: "1363087678" lazyimages: "enabled" exclude: [changelog.md, LICENSE.txt, README.md, Gemfile, Gemfile.lock] + +toc: + ordered_list: true diff --git a/_includes/featuredbox.html b/_includes/featuredbox.html index 50a5c40..ba6e8f3 100644 --- a/_includes/featuredbox.html +++ b/_includes/featuredbox.html @@ -6,11 +6,11 @@