From f721c98e33a53671c59cf4db5d79cef10691f454 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Sun, 8 Dec 2024 01:41:43 +0530 Subject: [PATCH] upgrade from 7.0.1 to 7.2.2 --- .gitignore | 5 ++- .vscode/tasks.json | 26 +++++++++++++ Gemfile | 6 +-- README.md | 24 ++---------- _config.yml | 5 ++- _data/contact.yml | 12 ++++++ _data/share.yml | 14 ++++++- _includes/head.html | 31 ++++++++++++--- _layouts/default.html | 12 ++++-- _layouts/post.html | 31 ++++++++++++++- tools/run.sh | 54 ++++++++++++++++++++++++++ tools/test.sh | 89 +++++++++++++++++++++++++++++++++++++++++++ 12 files changed, 268 insertions(+), 41 deletions(-) create mode 100644 .vscode/tasks.json create mode 100644 tools/run.sh create mode 100644 tools/test.sh diff --git a/.gitignore b/.gitignore index d6bf509..7dd7cef 100644 --- a/.gitignore +++ b/.gitignore @@ -17,10 +17,11 @@ package-lock.json # IDE configurations .idea -.vscode +.vscode/* !.vscode/settings.json !.vscode/extensions.json +!.vscode/tasks.json # Misc -_sass/dist +_sass/vendors assets/js/dist diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..7f0fdb8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Run Jekyll Server", + "type": "shell", + "command": "./tools/run.sh", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "detail": "Runs the Jekyll server with live reload." + }, + { + "label": "Build Jekyll Site", + "type": "shell", + "command": "./tools/test.sh", + "group": { + "kind": "build" + }, + "problemMatcher": [], + "detail": "Build the Jekyll site for production." + } + ] +} diff --git a/Gemfile b/Gemfile index 79c7434..4e36b61 100644 --- a/Gemfile +++ b/Gemfile @@ -2,10 +2,10 @@ source "https://rubygems.org" -gem "jekyll-theme-chirpy", "~> 7.0", ">= 7.0.1" +gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.2" group :test do - gem "html-proofer", "~> 5.0" + gem "html-proofer", "~> 5.0", group: :test end # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem @@ -16,7 +16,7 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do end # Performance-booster for watching directories on Windows -gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] +gem "wdm", "~> 0.2.0", :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. diff --git a/README.md b/README.md index bdcc8ae..dd3576b 100644 --- a/README.md +++ b/README.md @@ -25,30 +25,13 @@ Jekyll site. The following is a list of targets: To save you time, and also in case you lose some files while copying, we extract those files/configurations of the latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes. -## Prerequisites - -Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of -the basic environment. [Git](https://git-scm.com/) also needs to be installed. - -## Installation - -Sign in to GitHub and [**use this template**][use-template] to generate a brand new repository and name it -`USERNAME.github.io`, where `USERNAME` represents your GitHub username. - -Then clone it to your local machine and run: - -```console -$ bundle -``` - ## Usage -Please see the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy#documentation). +Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). ## Contributing -The contents of this repository are automatically updated when new releases are made to the [main repository][chirpy]. -If you have problems using it, or would like to participate in improving it, please go to the main repository for feedback! +This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback. ## License @@ -56,6 +39,5 @@ This work is published under [MIT][mit] License. [gem]: https://rubygems.org/gems/jekyll-theme-chirpy [chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/ -[use-template]: https://github.com/cotes2020/chirpy-starter/generate [CD]: https://en.wikipedia.org/wiki/Continuous_deployment -[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE +[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE \ No newline at end of file diff --git a/_config.yml b/_config.yml index e473033..22684b3 100644 --- a/_config.yml +++ b/_config.yml @@ -219,8 +219,9 @@ exclude: - tools - README.md - LICENSE - - "*.config.js" - - package*.json + - purgecss.js + - rollup.config.js + - "package*.json" - db_scripts - frontmatter.json diff --git a/_data/contact.yml b/_data/contact.yml index da4c60a..eed7eef 100644 --- a/_data/contact.yml +++ b/_data/contact.yml @@ -26,3 +26,15 @@ # - type: stack-overflow # icon: 'fab fa-stack-overflow' # url: '' # Fill with your stackoverflow homepage +# +# - type: bluesky +# icon: 'fa-brands fa-bluesky' +# url: '' # Fill with your Bluesky profile link +# +# - type: reddit +# icon: 'fa-brands fa-reddit' +# url: '' # Fill with your Reddit profile link +# +# - type: threads +# icon: 'fa-brands fa-threads' +# url: '' # Fill with your Threads profile link diff --git a/_data/share.yml b/_data/share.yml index 671b646..fec389f 100644 --- a/_data/share.yml +++ b/_data/share.yml @@ -35,4 +35,16 @@ platforms: # - label: fosstodon.org # link: "https://fosstodon.org/" # - label: photog.social - # link: "https://photog.social/" \ No newline at end of file + # link: "https://photog.social/" + # + # - type: Bluesky + # icon: "fa-brands fa-bluesky" + # link: "https://bsky.app/intent/compose?text=TITLE%20URL" + # + # - type: Reddit + # icon: "fa-brands fa-square-reddit" + # link: "https://www.reddit.com/submit?url=URL&title=TITLE" + # + # - type: Threads + # icon: "fa-brands fa-square-threads" + # link: "https://www.threads.net/intent/post?text=TITLE%20URL" \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index 5432fd1..20fdf08 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,7 +4,7 @@ - + @@ -70,7 +70,7 @@ {% unless jekyll.environment == 'production' %} - + {% endunless %} @@ -97,7 +97,7 @@ {% endif %} - + + + {% include js-selector.html lang=lang %} + + {% if jekyll.environment == 'production' %} + + {% if site.pwa.enabled %} + + {% endif %} + + + {% for analytics in site.analytics %} + {% capture str %}{{ analytics }}{% endcapture %} + {% assign platform = str | split: '{' | first %} + {% if site.analytics[platform].id and site.analytics[platform].id != empty %} + {% include analytics/{{ platform }}.html %} + {% endif %} + {% endfor %} + {% endif %} {% include metadata-hook.html %} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 651829c..97fce9c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -40,7 +40,7 @@ layout: compress -