aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-27 18:02:21 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-27 18:02:21 +0300
commitaf988f1885fe1e6841e56460aabf5b7c87858d8f (patch)
treee40e7eb2577cab16a7b053635376b6bfdc545eb4
parente8e80b9df7780e886d106f3e2747a5f64908fba0 (diff)
downloadyaroslavps.com-af988f1885fe1e6841e56460aabf5b7c87858d8f.tar.gz
yaroslavps.com-af988f1885fe1e6841e56460aabf5b7c87858d8f.zip
Cookbook improvements
CSS improvements and image size optimization.
-rw-r--r--content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpgbin256890 -> 162024 bytes
-rw-r--r--content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpgbin333435 -> 132558 bytes
-rw-r--r--content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpgbin275033 -> 168392 bytes
-rw-r--r--content/food/2020-06-06_parmesan-potatoes/potatoes.jpgbin228456 -> 139594 bytes
-rw-r--r--content/food/2020-06-07_cheesy-meatballs/meatballs.jpgbin243843 -> 124966 bytes
-rw-r--r--content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpgbin185462 -> 93778 bytes
-rw-r--r--content/food/2020-06-14_merchants-buckwheat/buckwheat.jpgbin285428 -> 173783 bytes
-rw-r--r--content/food/2020-06-22_beef-goulash/goulash.jpgbin622400 -> 196406 bytes
-rw-r--r--content/food/2020-08-01_fresh-guacamole/guacamole.jpgbin410607 -> 178201 bytes
-rw-r--r--content/food/2020-08-02_navy-style-pasta/pasta-navy-style.jpgbin544481 -> 238791 bytes
-rw-r--r--content/food/2020-10-02_refried-beans/refried-beans.jpgbin152138 -> 109920 bytes
-rw-r--r--content/food/2020-11-03_spicy-chili-con-carne/chili-con-carne.jpgbin209364 -> 165910 bytes
-rw-r--r--content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpgbin133842 -> 104208 bytes
-rw-r--r--sass/css/yaroslavps.scss25
-rw-r--r--templates/page.html2
-rw-r--r--templates/weblog.html2
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
--- a/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg
+++ b/content/food/2020-06-03_country-breakfast-skillet/country-skillet.jpg
Binary files 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
--- a/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg
+++ b/content/food/2020-06-03_spaghetti-alla-carbonara/carbonara.jpg
Binary files 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
--- a/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg
+++ b/content/food/2020-06-06_pan-seared-chicken-filet/chicken.jpg
Binary files 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
--- a/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg
+++ b/content/food/2020-06-06_parmesan-potatoes/potatoes.jpg
Binary files 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
--- a/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg
+++ b/content/food/2020-06-07_cheesy-meatballs/meatballs.jpg
Binary files 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
--- a/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg
+++ b/content/food/2020-06-13_creamy-mashed-potatoes/mashedpotatoes.jpg
Binary files 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
--- a/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg
+++ b/content/food/2020-06-14_merchants-buckwheat/buckwheat.jpg
Binary files 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
--- a/content/food/2020-06-22_beef-goulash/goulash.jpg
+++ b/content/food/2020-06-22_beef-goulash/goulash.jpg
Binary files 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
--- a/content/food/2020-08-01_fresh-guacamole/guacamole.jpg
+++ b/content/food/2020-08-01_fresh-guacamole/guacamole.jpg
Binary files 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
--- 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
Binary files 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
--- a/content/food/2020-10-02_refried-beans/refried-beans.jpg
+++ b/content/food/2020-10-02_refried-beans/refried-beans.jpg
Binary files 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
--- 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
Binary files 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
--- a/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg
+++ b/content/food/2021-01-18_sunday-morning-milkshake/milkshake.jpg
Binary files 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 %}
- <div class="post-container">
+ <div class="post-container full">
{{ page.content | safe }}
</div>
{% 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 %}
<div class="posts-list">
{% for post in paginator.pages %}
- <div class="post-container">
+ <div class="post-container partial">
<h2>
<a href="{{ post.permalink }}">{{ post.title }}</a>
<span class="publish-date">{{ post.date | date }}</span>