diff --git a/README.md b/README.md index e9c71a1..ef277b4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ -# Emoji Every Day +--- +layout: default +title: Emoji Every Day +permalink: /about/ +--- An emoji character for (almost) every day. -Data in emoji.yaml. Made for India, but can be extended to other countries. +Data in [`_data/emoji.yaml`](https://github.com/captn3m0/emoji-every-day/blob/main/_data/emoji.yml). Made for India, but can be extended to other countries. Includes: @@ -33,4 +37,9 @@ the proposal isn't accepted yet. Licensed under the [MIT License](https://nemo.mit-license.org/). See LICENSE file for details. +## Why + +Think of this as a poor man's Google Doodle for any website, where you might have daily refreshes. I'm currently using it for [news.tatooine.club](https://news.tatooine.club), +where I wanted to put a 🎄 next to the date for Christmas, but extended it to this project. See [Origin Post](https://tatooine.club/@nemo/111647981554186397) for more details. + [undays]: https://www.un.org/en/observances/list-days-weeks \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..3e12852 --- /dev/null +++ b/_config.yml @@ -0,0 +1,6 @@ +url: "" # the base hostname & protocol for your site, e.g. http://example.com +baseurl: "" # the subpath of your site, e.g. /blog +title: "" # the name of your site, e.g. ACME Corp. +exclude: + - vendor + - test.py \ No newline at end of file diff --git a/emoji.yaml b/_data/emoji.yaml similarity index 99% rename from emoji.yaml rename to _data/emoji.yaml index 42ab956..d7f37a3 100644 --- a/emoji.yaml +++ b/_data/emoji.yaml @@ -324,7 +324,7 @@ link: https://www.wipo.int/ip-outreach/en/ipday/ type: UN - - day_name: International Girls in "Information and Communications Technology" Day + - day_name: International Girls in 'Information and Communications Technology' Day emoji: 👩💻 link: https://www.itu.int/en/wgirls-ict/Pages/default.aspx type: UN diff --git a/_includes/emoji-date.html b/_includes/emoji-date.html new file mode 100644 index 0000000..1235f39 --- /dev/null +++ b/_includes/emoji-date.html @@ -0,0 +1,11 @@ +{% assign emojis = site.data.emoji[include.date_key] | default: empty_array %} + +{% if emojis.size > 0 %} + {% for event in emojis %} + {% if event.link %} + {{ event.emoji }} + {% else %} + {{ event.emoji }} + {% endif %} + {% endfor %} +{% endif %} diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..17cdd94 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/_includes/year.html b/_includes/year.html new file mode 100644 index 0000000..bf8e1c1 --- /dev/null +++ b/_includes/year.html @@ -0,0 +1,31 @@ +{% assign current_date = site.time | date: "%m-%d" %} +{% assign epoch = 1704068700 %} +{% assign one_day = 60 | times: 60 | times: 24 %} +{% assign D = epoch %} + +{% for date in (1...366) %} + {% assign D_n = D | date:"%d" %} + {% if D_n == "01" %} + {% assign month = D|date:"%m" %} +