From 5e8c6f24f2daf75a8aeabfea32011a61dcdde6bc Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Mon, 23 Jun 2025 15:41:55 +0200 Subject: [PATCH] yes cock ; i love sucking cock --- .env.local | 1 + posts/welcome.md | 37 +++++++++++++++++++++++++++++++++++++ src/app/layout.tsx | 14 ++++++++++++++ 3 files changed, 52 insertions(+) diff --git a/.env.local b/.env.local index ec55edb..12426c8 100644 --- a/.env.local +++ b/.env.local @@ -7,4 +7,5 @@ NEXT_SOCIAL_INSTAGRAM="http://instagram.com/rattatwinko" # Your Ins NEXT_SOCIAL_TWITTER="https://twitter.com/user" # I dont have Twitter , if you have put your user there. # NEXT_SOCIAL_GITHUB_STATE="true" # I Have GitHub so this is True (if you dont then set this to false) # NEXT_SOCIAL_GITHUB_LINK_IF_TRUE="http://github.com/ZockerKatze" # If you have GitHub then paste your link here # +NEXT_SOCIAL_BUYMEACOFFEE="https://coff.ee/rattatwinko" PORT=8080 # This is unused. You can safely delete if you want. # \ No newline at end of file diff --git a/posts/welcome.md b/posts/welcome.md index 576b415..07015a7 100644 --- a/posts/welcome.md +++ b/posts/welcome.md @@ -69,6 +69,14 @@ Your blog will be available at `http://localhost:3000` ## 🐳 Docker Deployment +> **Note:** Docker deployment works very well now, and this is the suggested way of running MarkdownBlog. Folder emojis work perfectly within Docker! +> +> **Technical details:** +> - Docker ensures a consistent environment, eliminating issues with local Node.js, npm, or OS differences. +> - All dependencies, file paths, and permissions are managed inside the container, reducing "works on my machine" bugs. +> - The Docker volume for `/app/posts` guarantees that your content and emoji settings persist across container restarts and upgrades. +> - The API now reads the emoji and pin data fresh on every request, so changes are instantly reflected in the UI. + ### Option 1: Quick Deployment Script For a quick and easy deployment, use the included Docker script: @@ -134,6 +142,13 @@ docker-compose up -d ## Local Deployment +> **Warning:** Local deployment is now more buggy than the Docker deployment. For the best experience, use Docker. +> +> **Technical blah:** +> - Local runs can be affected by mismatched Node.js versions, missing dependencies, or file permission issues. +> - File system events and hot reloads may not always pick up changes to emoji or pin data, leading to stale UI or missing features. +> - If you must use local, always restart the server after changing `pinned.json` or folder emoji settings. + If Docker isn't your thing, here's how to deploy locally: ### Development Mode @@ -262,6 +277,8 @@ Create a `.env.local` file , or use mine as a template: #NEXT_SOCIAL_GITHUB_LINK_IF_TRUE="http://github.com/ZockerKatze" # If you have GitHub then paste your link here +#NEXT_SOCIAL_BUYMEACOFFEE="https://coff.ee/rattatwinko" + #PORT=8080 ``` @@ -336,6 +353,18 @@ We welcome contributions! Please: --- +## ☕ Support the Project + +If you enjoy using MarkdownBlog and want to support its development, you can now [buy me a coffee](https://coff.ee/rattatwinko)! + +Your support helps keep the project alive and motivates further improvements. Thank you! + +> **Tip:** You can change the coffee link by setting the `NEXT_SOCIAL_BUYMEACOFFEE` variable in your `.env.local` file. +> +> If you hate the developer do this. + +--- + ## Acknowledgments Thanks for choosing MarkdownBlog! If you find it useful, please: @@ -347,6 +376,14 @@ Thanks for choosing MarkdownBlog! If you find it useful, please: --- +## 🗂️ Folder Emoji Technical Note + +- Folder emoji assignments are now stored in `posts/pinned.json` and are read directly by the API on every request. +- This means emoji changes are persistent and robust, especially in Docker, where the file system is isolated and predictable. +- If you ever see missing emojis, check that your Docker volume is mounted and the JSON file is up to date. + +--- + > **Happy Blogging!** 🎉 > > *"DEVELOPERS! DEVELOPERS! DEVELOPERS!"* - Steve Ballmer diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0d13520..a7625d8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -141,6 +141,20 @@ export default function RootLayout({ /> )} + {process.env.NEXT_SOCIAL_BUYMEACOFFEE && ( + + BuyMeACoffee + + )}