diff --git a/Cargo.toml b/Cargo.toml index e22075c..d1f5368 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,12 @@ colored = "2.1.0" minijinja = { version = "2.5.0", features = ["loader"] } pulldown-cmark = "0.12.2" pulldown-cmark-to-cmark = "19.0.0" +run_shell = "0.1.13" serde = { version = "1.0.215", features = ["derive", "rc"] } serde_json = "1.0.133" serde_yaml = "0.9" thiserror = "2.0.3" +urlencoding = "2.1.3" [dev-dependencies] tempfile = "3.14.0" diff --git a/blog/statics/SW420-Vibration-Sensor-Module.jpg b/blog/assets/SW420-Vibration-Sensor-Module.jpg similarity index 100% rename from blog/statics/SW420-Vibration-Sensor-Module.jpg rename to blog/assets/SW420-Vibration-Sensor-Module.jpg diff --git a/blog/statics/Ultrasonic-Sensor-HC-SR04.jpg b/blog/assets/Ultrasonic-Sensor-HC-SR04.jpg similarity index 100% rename from blog/statics/Ultrasonic-Sensor-HC-SR04.jpg rename to blog/assets/Ultrasonic-Sensor-HC-SR04.jpg diff --git a/blog/statics/face-mesh.png b/blog/assets/face-mesh.png similarity index 100% rename from blog/statics/face-mesh.png rename to blog/assets/face-mesh.png diff --git a/blog/statics/hareket.jpg b/blog/assets/hareket.jpg similarity index 100% rename from blog/statics/hareket.jpg rename to blog/assets/hareket.jpg diff --git a/blog/statics/home-assistant-sc.jpg b/blog/assets/home-assistant-sc.jpg similarity index 100% rename from blog/statics/home-assistant-sc.jpg rename to blog/assets/home-assistant-sc.jpg diff --git a/blog/statics/home-assistant-sc2.jpg b/blog/assets/home-assistant-sc2.jpg similarity index 100% rename from blog/statics/home-assistant-sc2.jpg rename to blog/assets/home-assistant-sc2.jpg diff --git a/blog/statics/ios-sc.jpg b/blog/assets/ios-sc.jpg similarity index 100% rename from blog/statics/ios-sc.jpg rename to blog/assets/ios-sc.jpg diff --git a/blog/statics/membantu.jpg b/blog/assets/membantu.jpg similarity index 100% rename from blog/statics/membantu.jpg rename to blog/assets/membantu.jpg diff --git a/blog/statics/style.css b/blog/assets/style.css similarity index 63% rename from blog/statics/style.css rename to blog/assets/style.css index 0dc860a..3d005f7 100644 --- a/blog/statics/style.css +++ b/blog/assets/style.css @@ -1,37 +1,23 @@ -/* CSS */ -:root { - font-family: Inter, sans-serif; - font-feature-settings: 'liga' 1, 'calt' 1; - /* fix for Chrome */ -} - -@supports (font-variation-settings: normal) { - :root { - font-family: InterVariable, sans-serif; - } -} - - blockquote { - font-family: 'Gotham SSm A', 'Gotham SSm B', 'Proxima Nova', Futura, Helvetica, sans-serif; + font-family: "Gotham SSm A", "Gotham SSm B", "Proxima Nova", Futura, Helvetica, sans-serif; font-weight: 400; letter-spacing: 1.5px; font-style: normal; - font-size: 20px; + font-size: 26px; line-height: 1.25em; text-transform: uppercase; - color: #A32B68; + color: #a32b68; background: -webkit-linear-gradient(top, #fd0b58 0px, #a32b68 100%); background: linear-gradient(top, #fd0b58 0px, #a32b68 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; &:before { - content: ''; + content: ""; } &:after { - content: ''; + content: ""; } } @@ -49,4 +35,4 @@ blockquote.right { margin: 10px 0 10px 20px; float: right; max-width: 350px; -} \ No newline at end of file +} diff --git a/blog/pages/about.html b/blog/pages/about.html index 616a8cb..1b38c8b 100644 --- a/blog/pages/about.html +++ b/blog/pages/about.html @@ -7,12 +7,16 @@ {% extends "base.html" %} {% block body %} -πŸ‘¨β€πŸ‘¦ Father of TimuΓ§in
-πŸ§‘πŸ» Husband of Aysel
-πŸ‘¨πŸ»β€πŸ’» Technology addict
-πŸ‘¨πŸ»β€πŸ’Ό Engineering Manager
-πŸˆβ€β¬› Cat owner
-πŸ”¬ a curious person
-πŸ‡©πŸ‡° Live in Denmark +
+ πŸ‘¨β€πŸ‘¦ Father of TimuΓ§in
+ πŸ§‘πŸ» Husband of Aysel
+ πŸ‘¨πŸ»β€πŸ’» Technology addict
+ πŸ‘¨πŸ»β€πŸ’Ό Engineering Manager
+ πŸˆβ€β¬› Cat owner
+ πŸ”¬ a curious person
+ πŸ‡§πŸ‡¬ Born in Denmark
+ πŸ‡ΉπŸ‡· Lived in Turkey
+ πŸ‡©πŸ‡° Lives in Denmark +
{% endblock %} \ No newline at end of file diff --git a/blog/posts/How-do-I-track-my-baby-s-sleep.md b/blog/posts/How-do-I-track-my-baby-s-sleep.md index a9bf3a7..ca9f3de 100644 --- a/blog/posts/How-do-I-track-my-baby-s-sleep.md +++ b/blog/posts/How-do-I-track-my-baby-s-sleep.md @@ -20,7 +20,7 @@ When it became a problem for us to keep track of when we put our baby to sleep, We started by determining the equipment we could use. The cradle we use is like the one below and instead of swinging sideways, it swings up and down.
- +
Membantu Crib
@@ -37,7 +37,7 @@ The first thing that came to my mind was to track the crib with a motion sensor,
- +
sw-420 vibration sensor module
@@ -78,7 +78,7 @@ While examining the sensors I had, I decided that I could experiment with the **
- +
Ultrasonic Sensor HC-SR04
@@ -90,7 +90,7 @@ As shown in the figure, the expected distance per second is around 15cm.
- +
Cradle Movement
@@ -109,7 +109,7 @@ Below is the screenshot of the **Home Assistant** screen.
- +
Home Assistant Screenshot
@@ -172,7 +172,7 @@ If anyone is interested, they can check out [{% call fontawesome('fab', 'github' {% endcall %}
- +
Face Scanned with Face Mesh
@@ -190,7 +190,7 @@ I'm now tracking my baby's sleep more accurately, but there's just one problem l
- +
Home Assistant Screenshot
@@ -228,7 +228,7 @@ You can access the full source code of the project [{% call fontawesome('fab', ' I developed a small **script** to monitor the baby's sleep status from the iPhone home screen with the **Scriptable** application.
- +
IOS Screenshot
@@ -244,9 +244,9 @@ _Note_: I do not share the vibration and ultrasonic sensor connection diagrams, #### Links -[^1]: https://www.arduino.cc/en/software -[^2]: https://www.amazon.de/dp/B0754N794H?ref=ppx_yo2ov_dt_b_product_details&th=1 -[^3]: https://www.amazon.de/dp/B08X3GRK22?psc=1&ref=ppx_yo2ov_dt_b_product_details -[^4]: https://www.amazon.de/dp/B0CDGHV276?psc=1&ref=ppx_yo2ov_dt_b_product_details -[^5]: https://www.amazon.de/dp/B0B8ZT5HDW?psc=1&ref=ppx_yo2ov_dt_b_product_details -[^6]: https://developers.google.com/mediapipe \ No newline at end of file +[^1]: [https://www.arduino.cc/en/software](https://www.arduino.cc/en/software) +[^2]: [https://www.amazon.de/dp/B0754N794H?ref=ppx_yo2ov_dt_b_product_details&th=1](https://www.amazon.de/dp/B0754N794H?ref=ppx_yo2ov_dt_b_product_details&th=1) +[^3]: [https://www.amazon.de/dp/B08X3GRK22?psc=1&ref=ppx_yo2ov_dt_b_product_details](https://www.amazon.de/dp/B08X3GRK22?psc=1&ref=ppx_yo2ov_dt_b_product_details) +[^4]: [https://www.amazon.de/dp/B0CDGHV276?psc=1&ref=ppx_yo2ov_dt_b_product_details](https://www.amazon.de/dp/B0CDGHV276?psc=1&ref=ppx_yo2ov_dt_b_product_details) +[^5]: [https://www.amazon.de/dp/B0B8ZT5HDW?psc=1&ref=ppx_yo2ov_dt_b_product_details](https://www.amazon.de/dp/B0B8ZT5HDW?psc=1&ref=ppx_yo2ov_dt_b_product_details) +[^6]: [https://developers.google.com/mediapipe](https://developers.google.com/mediapipe) \ No newline at end of file diff --git a/blog/templates/default/_partial_posts.html b/blog/templates/default/_partial_posts.html index cac0192..b4405b9 100644 --- a/blog/templates/default/_partial_posts.html +++ b/blog/templates/default/_partial_posts.html @@ -1,13 +1,13 @@