From 3f209f5cc10f40ab5268e2b3c82332b93bc7bc51 Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 4 Jan 2024 12:01:56 +0530 Subject: [PATCH] pagespeed improvements --- _config.yml | 3 ++- {assets/css => _includes}/main.scss | 28 +++++++++++++++++++++++----- _includes/year.html | 3 +-- _layouts/default.html | 8 +++++++- _sass/base.scss | 3 +++ 5 files changed, 36 insertions(+), 9 deletions(-) rename {assets/css => _includes}/main.scss (70%) diff --git a/_config.yml b/_config.yml index 399c7f0..a255f89 100644 --- a/_config.yml +++ b/_config.yml @@ -3,4 +3,5 @@ baseurl: "/emoji-every-day" # the subpath of your site, e.g. /blog title: "Emoji Every Day" # the name of your site, e.g. ACME Corp. exclude: - vendor - - test.py \ No newline at end of file + - test.py +description: An Emoji Calendar for 2024, with an emoji picked for (almost) every day. Use this in your own apps to show a quirky date. \ No newline at end of file diff --git a/assets/css/main.scss b/_includes/main.scss similarity index 70% rename from assets/css/main.scss rename to _includes/main.scss index a3c33f1..2b8b7e5 100644 --- a/assets/css/main.scss +++ b/_includes/main.scss @@ -1,8 +1,25 @@ ---- ---- -@import "base"; +$backgroundColor: #ffffff; +$bodyColor: #000000; +$bodyFont: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; + +body { + background: $backgroundColor; + color: $bodyColor; + font-family: $bodyFont; +} + +footer { + margin-top: 20px; + padding: 20px; + text-align: center; + font-size: 0.8em; + color: #aaa; + a { + font-size: 1.5em; + } +} $primary-color: #3498db; -$today-color: #e74c3c; +$today-color: #aa1e13; h1 { color: $primary-color; @@ -43,6 +60,7 @@ h1 { padding: 10px; border: 1px solid #ddd; text-align: center; + font-size: 1.2em; &.today { background-color: $today-color; @@ -51,7 +69,7 @@ h1 { } .emoji { - font-size: 1.2em; + } a { diff --git a/_includes/year.html b/_includes/year.html index bf8e1c1..9cf58ed 100644 --- a/_includes/year.html +++ b/_includes/year.html @@ -15,7 +15,7 @@ {% assign D_y = D|date:"%Y-%m-%d"%}
{{D|date:"%d"}} -
+
{% include emoji-date.html date_key=D_x %} {% include emoji-date.html date_key=D_y %}
@@ -24,7 +24,6 @@ {% assign new_month = D|date:"%m" %} {% if new_month != month %} -
{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index bce83f4..e6f0b6d 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,7 +4,13 @@ {{ page.title }} - {{ site.title }} - + +

{{page.title}}

diff --git a/_sass/base.scss b/_sass/base.scss index d792eab..259a90f 100644 --- a/_sass/base.scss +++ b/_sass/base.scss @@ -14,4 +14,7 @@ footer { text-align: center; font-size: 0.8em; color: #aaa; + a { + font-size: 1.5em; + } } \ No newline at end of file