From af988f1885fe1e6841e56460aabf5b7c87858d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sat, 27 Mar 2021 18:02:21 +0300 Subject: Cookbook improvements CSS improvements and image size optimization. --- .../country-skillet.jpg | Bin 256890 -> 162024 bytes .../carbonara.jpg | Bin 333435 -> 132558 bytes .../chicken.jpg | Bin 275033 -> 168392 bytes .../food/2020-06-06_parmesan-potatoes/potatoes.jpg | Bin 228456 -> 139594 bytes .../food/2020-06-07_cheesy-meatballs/meatballs.jpg | Bin 243843 -> 124966 bytes .../mashedpotatoes.jpg | Bin 185462 -> 93778 bytes .../2020-06-14_merchants-buckwheat/buckwheat.jpg | Bin 285428 -> 173783 bytes content/food/2020-06-22_beef-goulash/goulash.jpg | Bin 622400 -> 196406 bytes .../food/2020-08-01_fresh-guacamole/guacamole.jpg | Bin 410607 -> 178201 bytes .../pasta-navy-style.jpg | Bin 544481 -> 238791 bytes .../2020-10-02_refried-beans/refried-beans.jpg | Bin 152138 -> 109920 bytes .../chili-con-carne.jpg | Bin 209364 -> 165910 bytes .../milkshake.jpg | Bin 133842 -> 104208 bytes sass/css/yaroslavps.scss | 25 ++++++++++++++++++++- templates/page.html | 2 +- templates/weblog.html | 2 +- 16 files changed, 26 insertions(+), 3 deletions(-) diff --git a/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg b/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg index b3f5b78..5207f35 100644 Binary files a/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg and b/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg differ diff --git a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg index bc09f49..2a68b7e 100644 Binary files a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg and b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg differ diff --git a/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg b/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg index cecebab..4591c49 100644 Binary files a/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg and b/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg differ diff --git a/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg b/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg index 549384b..674afcd 100644 Binary files a/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg and b/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg differ diff --git a/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg b/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg index d31e24d..449d2ae 100644 Binary files a/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg and b/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg differ diff --git a/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg b/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg index b4c0fbb..0f2f18f 100644 Binary files a/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg and b/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg differ diff --git a/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg b/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg index 054fea9..1ec4b40 100644 Binary files a/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg and b/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg differ diff --git a/content/food/2020-06-22_beef-goulash/goulash.jpg b/content/food/2020-06-22_beef-goulash/goulash.jpg index 562b189..7c0a9dd 100644 Binary files a/content/food/2020-06-22_beef-goulash/goulash.jpg and b/content/food/2020-06-22_beef-goulash/goulash.jpg differ diff --git a/content/food/2020-08-01_fresh-guacamole/guacamole.jpg b/content/food/2020-08-01_fresh-guacamole/guacamole.jpg index 662c157..05780c0 100644 Binary files a/content/food/2020-08-01_fresh-guacamole/guacamole.jpg and b/content/food/2020-08-01_fresh-guacamole/guacamole.jpg differ diff --git a/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg b/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg index 0b17de7..ff92a14 100644 Binary files a/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg and b/content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpg differ diff --git a/content/food/2020-10-02_refried-beans/refried-beans.jpg b/content/food/2020-10-02_refried-beans/refried-beans.jpg index 969d0a4..94a2160 100644 Binary files a/content/food/2020-10-02_refried-beans/refried-beans.jpg and b/content/food/2020-10-02_refried-beans/refried-beans.jpg differ diff --git a/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg b/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg index 7b0fb41..74d7d32 100644 Binary files a/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg and b/content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpg differ diff --git a/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg b/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg index 05020e2..90de18a 100644 Binary files a/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg and b/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg differ diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index e10d200..723d3a5 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -1,9 +1,14 @@ -@import "normalize"; @import "colors"; @import "fonts"; @import "newyear"; +* { + box-sizing: border-box; +} + html, body { + margin: 0; + padding: 0; width: 100%; min-height: 100vh; background-color: $bg1; @@ -194,12 +199,30 @@ h2 > span.publish-date { .post-container { padding: 1em 2em; + overflow: auto; +} + +.post-container.partial img { + float: left; + max-width: 50%; + padding-right: 1em; +} + +.post-container.full img { + display: block; + margin: 0 auto; + max-width: 100%; + max-height: 40vh; } .post-container img { max-width: 100%; } +.post-container.full img:nth-of-type(1) { + max-height: 60vh; +} + .footnote-definition:first-of-type { border-top: 1px solid $gray; padding-top: 1em; diff --git a/templates/page.html b/templates/page.html index 4cf03c7..54b049f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -48,7 +48,7 @@ {% endif %} {% endblock %} {% block content %} -
+
{{ page.content | safe }}
{% endblock %} diff --git a/templates/weblog.html b/templates/weblog.html index f9889af..6638faf 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -48,7 +48,7 @@ {% block content %}
{% for post in paginator.pages %} -
+

{{ post.title }} {{ post.date | date }} -- cgit v1.2.3