add emojis
This commit is contained in:
parent
bbd7fe9909
commit
f244afdc64
|
@ -0,0 +1,3 @@
|
|||
[submodule "_data/emoji_every_day"]
|
||||
path = _data/emoji_every_day
|
||||
url = https://github.com/captn3m0/emoji-every-day.git
|
1
Gemfile
1
Gemfile
|
@ -9,3 +9,4 @@ group :jekyll_plugins do
|
|||
gem "jemoji", "~> 0.13.0"
|
||||
end
|
||||
|
||||
gem "json"
|
20
Gemfile.lock
20
Gemfile.lock
|
@ -11,7 +11,7 @@ GEM
|
|||
minitest (>= 5.1)
|
||||
mutex_m
|
||||
tzinfo (~> 2.0)
|
||||
addressable (2.8.5)
|
||||
addressable (2.8.6)
|
||||
public_suffix (>= 2.0.2, < 6.0)
|
||||
base64 (0.2.0)
|
||||
bigdecimal (3.1.5)
|
||||
|
@ -25,10 +25,10 @@ GEM
|
|||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0)
|
||||
eventmachine (1.2.7)
|
||||
ffi (1.16.2)
|
||||
ffi (1.16.3)
|
||||
forwardable-extended (2.6.0)
|
||||
gemoji (4.1.0)
|
||||
google-protobuf (3.24.3-x86_64-linux)
|
||||
google-protobuf (3.25.1-x86_64-linux)
|
||||
html-pipeline (2.14.3)
|
||||
activesupport (>= 2)
|
||||
nokogiri (>= 1.4)
|
||||
|
@ -63,6 +63,7 @@ GEM
|
|||
gemoji (>= 3, < 5)
|
||||
html-pipeline (~> 2.2)
|
||||
jekyll (>= 3.0, < 5.0)
|
||||
json (2.7.1)
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
|
@ -74,29 +75,29 @@ GEM
|
|||
mercenary (0.4.0)
|
||||
minitest (5.20.0)
|
||||
mutex_m (0.2.0)
|
||||
nokogiri (1.15.4-x86_64-linux)
|
||||
nokogiri (1.15.5-x86_64-linux)
|
||||
racc (~> 1.4)
|
||||
pathutil (0.16.2)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (5.0.3)
|
||||
racc (1.7.1)
|
||||
public_suffix (5.0.4)
|
||||
racc (1.7.3)
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.2.6)
|
||||
rouge (4.1.3)
|
||||
rouge (4.2.0)
|
||||
ruby2_keywords (0.0.5)
|
||||
safe_yaml (1.0.5)
|
||||
sanitize (6.1.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
sass-embedded (1.68.0-x86_64-linux-gnu)
|
||||
sass-embedded (1.69.5-x86_64-linux-gnu)
|
||||
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)
|
||||
unicode-display_width (2.5.0)
|
||||
webrick (1.8.1)
|
||||
|
||||
PLATFORMS
|
||||
|
@ -107,6 +108,7 @@ DEPENDENCIES
|
|||
jekyll-include-cache (~> 0.2.1)
|
||||
jekyll-seo-tag (~> 2.8)
|
||||
jemoji (~> 0.13.0)
|
||||
json
|
||||
sanitize (~> 6.0)
|
||||
|
||||
BUNDLED WITH
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 29140e09cb201f7a11764c60fc789c5ddff6aa2e
|
|
@ -1,8 +1,20 @@
|
|||
{% assign S= site.data.emoji_every_day.emoji %}
|
||||
{% 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 %}
|
||||
{% capture current_date_with_year %}{{ "now" | date: "%Y-%m-%d" }}{% endcapture %}
|
||||
<div class="emoji-representation">
|
||||
{% for E in S[current_date] %}
|
||||
{% if E.link %}
|
||||
<a href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
{% else %}
|
||||
<span title="{{E.day_name}}">{{E.emoji}}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for E in S[current_date_with_year] %}
|
||||
{% if E.link %}
|
||||
<a href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
{% else %}
|
||||
<span title="{{E.day_name}}">{{E.emoji}}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
|
@ -133,6 +133,17 @@ details[data-syndicated="1"][data-day="yesterday"]>summary::before{
|
|||
content: "❖";
|
||||
}
|
||||
|
||||
.quiet::before{
|
||||
content: "[";
|
||||
}
|
||||
|
||||
.quiet {
|
||||
color: darkgoldenrod;
|
||||
}
|
||||
.quiet::after{
|
||||
content: "]";
|
||||
}
|
||||
|
||||
/*details[data-syndicated="1"][data-day="today"]>summary::before{
|
||||
content: "⨂";
|
||||
}details[data-syndicated="0"][data-day="yesterday"]>summary::before{
|
||||
|
@ -179,4 +190,10 @@ mark {
|
|||
|
||||
.hidden-notifier {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.emoji-representation {
|
||||
display: inline;
|
||||
text-decoration: none;
|
||||
font-style: normal;
|
||||
}
|
|
@ -7,10 +7,10 @@ layout: default
|
|||
<div class="topic-container">
|
||||
<h1 class="topic-heading">{{page.title | capitalize | strip}}</h1>
|
||||
<div class="hr-line"></div>
|
||||
<p class="topic-date">
|
||||
<time datetime="{{site.time | date: '%y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
<div class="topic-date">
|
||||
<time datetime="{{site.time | date: '%Y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if page.article_count == 0 %}
|
||||
<p class="topic-empty">No articles today under {{page.title}}</p>
|
||||
|
|
|
@ -5,9 +5,9 @@ layout: default
|
|||
<div class="topic-container">
|
||||
<h1 class="topic-heading">{{page.title}}</h1>
|
||||
<div class="hr-line"></div>
|
||||
<p class="topic-date"><time datetime="{{site.time | date: '%y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
<div class="topic-date"><time datetime="{{site.time | date: '%Y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
</p>
|
||||
</div>
|
||||
{% for T in site.data.topics %}
|
||||
{% assign post_count = T[1] %}
|
||||
{% if post_count > 0 %}
|
||||
|
|
Loading…
Reference in New Issue