From e7596b1b3cb58ad774aa8b7fad66d5f2298baa1a Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 25 Jan 2025 20:31:01 +0100 Subject: add stale indicator + admonition css --- Gemfile | 7 +++---- _config.yml | 3 +-- _data/git.yml | 9 +++++++-- _includes/outdated.html | 5 +++++ _layouts/default.html | 2 ++ _plugins/filters.rb | 4 ++-- _plugins/meta.rb | 4 ++-- _sass/layout.scss | 7 +++++-- _sass/theme.scss | 21 +++++++++++++++++---- script.js | 8 ++++++++ 10 files changed, 52 insertions(+), 18 deletions(-) create mode 100644 _includes/outdated.html create mode 100644 script.js diff --git a/Gemfile b/Gemfile index d5fabd7..c0963fc 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,8 @@ source 'https://rubygems.org' gem 'jekyll', '~> 4.3' gem 'json', '~> 2.7' gem 'nokogiri', '~> 1.16' -gem 'jekyll-liquify', '~> 0.0.3' -gem 'logger', '~> 1.6', '>= 1.6.5' -gem 'base64', '~> 0.2.0' -gem 'csv', '~> 3.3', '>= 3.3.2' +gem 'logger' +gem 'base64' +gem 'csv' diff --git a/_config.yml b/_config.yml index 6d8c836..99573cc 100644 --- a/_config.yml +++ b/_config.yml @@ -21,6 +21,5 @@ markdown: kramdown sass: style: compressed sourcemap: development -gems: - - jekyll-liquify +stale_threshold: 63072000 # 2 years diff --git a/_data/git.yml b/_data/git.yml index 7dbce91..fe8c22f 100644 --- a/_data/git.yml +++ b/_data/git.yml @@ -2,5 +2,10 @@ # edit counts, and is used to ignore commits where git sees a file as touched # even though its content hasn't changed. ignore_commits: - - ce37824c5260dd370c61cf174ea80ca7deeb1058 # next.js -> jekyll - - 7593175d2fc1acfeff315106099b663c251a51af # remove thumbnails + # transition from next.js to jekyll + - ce37824c5260dd370c61cf174ea80ca7deeb1058 + - b07eb8d1c06e582e5f177c159d820778029a9d93 + - dee0b16c1cdf18d205ffcb738eda0e9049396fd0 + # remove thumbnails + - 7593175d2fc1acfeff315106099b663c251a51af + diff --git a/_includes/outdated.html b/_includes/outdated.html new file mode 100644 index 0000000..2840b70 --- /dev/null +++ b/_includes/outdated.html @@ -0,0 +1,5 @@ + diff --git a/_layouts/default.html b/_layouts/default.html index fa4902f..9a48c60 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -13,6 +13,7 @@ {{ site.title }} {% endif %} +