diff --git a/Gemfile b/Gemfile index c352a6e..027bff8 100644 --- a/Gemfile +++ b/Gemfile @@ -6,4 +6,6 @@ gem "sanitize", "~> 6.0" group :jekyll_plugins do gem "jekyll-seo-tag", "~> 2.8" gem "jekyll-include-cache", "~> 0.2.1" + gem "jemoji", "~> 0.13.0" end + diff --git a/Gemfile.lock b/Gemfile.lock index 4e58eeb..b059cef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,18 +1,37 @@ GEM remote: https://rubygems.org/ specs: + activesupport (7.1.2) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) + base64 (0.2.0) + bigdecimal (3.1.5) colorator (1.1.0) concurrent-ruby (1.2.2) + connection_pool (2.4.1) crass (1.0.6) + drb (2.2.0) + ruby2_keywords em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) ffi (1.16.2) forwardable-extended (2.6.0) + gemoji (4.1.0) google-protobuf (3.24.3-x86_64-linux) + html-pipeline (2.14.3) + activesupport (>= 2) + nokogiri (>= 1.4) http_parser.rb (0.8.0) i18n (1.14.1) concurrent-ruby (~> 1.0) @@ -40,6 +59,10 @@ GEM jekyll (>= 3.8, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) + jemoji (0.13.0) + gemoji (>= 3, < 5) + html-pipeline (~> 2.2) + jekyll (>= 3.0, < 5.0) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) @@ -49,6 +72,8 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) + minitest (5.20.0) + mutex_m (0.2.0) nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) pathutil (0.16.2) @@ -60,6 +85,7 @@ GEM ffi (~> 1.0) rexml (3.2.6) rouge (4.1.3) + ruby2_keywords (0.0.5) safe_yaml (1.0.5) sanitize (6.1.0) crass (~> 1.0.2) @@ -68,6 +94,8 @@ GEM google-protobuf (~> 3.23) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) unicode-display_width (2.4.2) webrick (1.8.1) @@ -78,7 +106,8 @@ DEPENDENCIES jekyll (~> 4.3.2) jekyll-include-cache (~> 0.2.1) jekyll-seo-tag (~> 2.8) + jemoji (~> 0.13.0) sanitize (~> 6.0) BUNDLED WITH - 2.4.20 + 2.4.22 diff --git a/_config.yml b/_config.yml index facb689..a7c394d 100644 --- a/_config.yml +++ b/_config.yml @@ -12,6 +12,7 @@ timezone: Asia/Kolkata plugins: - jekyll-include-cache - jekyll-seo-tag + - jemoji env: development webmaster_verifications: google: sR2qUrWTIJvtOlBP4RwHSavUoICUZaIGYLdxuylnSc4 diff --git a/_includes/date-easter.html b/_includes/date-easter.html new file mode 100644 index 0000000..8d13947 --- /dev/null +++ b/_includes/date-easter.html @@ -0,0 +1,8 @@ +{% capture current_date %}{{ "now" | date: "%m-%d" }}{% endcapture %} +{% if current_date == "12-25" %} + :christmas_tree: +{% elsif current_date == "12-29" %} + :birthday: +{% elsif current_date == "12-31" or current_date == "01-01" %} + :confetti_ball: +{% endif %} \ No newline at end of file diff --git a/_layouts/article.html b/_layouts/article.html index 996a9e9..592f3be 100644 --- a/_layouts/article.html +++ b/_layouts/article.html @@ -11,6 +11,7 @@ layout: default

{{page.title | strip}}

{% if page.sources%}

{{page.sources | join: " "}}

{%endif%} + {% include date-easter.html %}
diff --git a/_layouts/topic.html b/_layouts/topic.html index 6d4bcf9..d348ec7 100644 --- a/_layouts/topic.html +++ b/_layouts/topic.html @@ -7,7 +7,10 @@ layout: default

{{page.title | capitalize | strip}}

-

+

+ + {% include date-easter.html %} +

{% if page.article_count == 0 %}

No articles today under {{page.title}}

diff --git a/index.html b/index.html index 95379f0..53c5937 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,9 @@ layout: default

{{page.title}}

-

+

+{% include date-easter.html %} +

{% for T in site.data.topics %} {% assign post_count = T[1] %} {% if post_count > 0 %}