From 756312021ae7aace270548bf81bdcfb49f976484 Mon Sep 17 00:00:00 2001 From: yehor Date: Tue, 7 Oct 2025 21:05:49 +0300 Subject: [PATCH] Add discussion link --- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 2 + .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../index.md | 4 +- .../{index.mdx => index.md} | 2 +- package.json | 2 +- src/components/BlogDiscussions/index.js | 112 ++---------------- .../BlogDiscussions/styles.module.css | 25 +++- src/theme/MDXComponents.js | 13 ++ 20 files changed, 90 insertions(+), 122 deletions(-) rename blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/{index.mdx => index.md} (99%) create mode 100644 src/theme/MDXComponents.js diff --git a/blog/2018-06-21-making-a-wifi-enabled-smart-air-humidifier/index.md b/blog/2018-06-21-making-a-wifi-enabled-smart-air-humidifier/index.md index 8da0981..35c18f1 100644 --- a/blog/2018-06-21-making-a-wifi-enabled-smart-air-humidifier/index.md +++ b/blog/2018-06-21-making-a-wifi-enabled-smart-air-humidifier/index.md @@ -116,4 +116,6 @@ binary_sensor: pin: number: D5 mode: INPUT -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2019-02-15-smart-doorbell-with-xiaomi-aqara-button-and-google-home/index.md b/blog/2019-02-15-smart-doorbell-with-xiaomi-aqara-button-and-google-home/index.md index cb99789..196efe2 100644 --- a/blog/2019-02-15-smart-doorbell-with-xiaomi-aqara-button-and-google-home/index.md +++ b/blog/2019-02-15-smart-doorbell-with-xiaomi-aqara-button-and-google-home/index.md @@ -49,4 +49,6 @@ Now we need to create a handler of the Aqara button in `automations.yaml`: - data: message: "Someone near your front door" service: notify.push -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2019-02-21-home-assistant-presence-detection-with-google-wifi/index.md b/blog/2019-02-21-home-assistant-presence-detection-with-google-wifi/index.md index b4c7b49..7bc2a06 100644 --- a/blog/2019-02-21-home-assistant-presence-detection-with-google-wifi/index.md +++ b/blog/2019-02-21-home-assistant-presence-detection-with-google-wifi/index.md @@ -134,4 +134,6 @@ Now we can rely on that group’s state to check if there is nobody home. I’ve service: notify.push ``` -That is all for now. Thanks for reading. \ No newline at end of file +That is all for now. Thanks for reading. + + \ No newline at end of file diff --git a/blog/2020-11-10-using-variables-as-configuration-for-home-assistant-automation/index.md b/blog/2020-11-10-using-variables-as-configuration-for-home-assistant-automation/index.md index 65bf162..da10fe9 100644 --- a/blog/2020-11-10-using-variables-as-configuration-for-home-assistant-automation/index.md +++ b/blog/2020-11-10-using-variables-as-configuration-for-home-assistant-automation/index.md @@ -208,4 +208,6 @@ Also, this automation should be able to run in parallel to make it possible to h ```yaml mode: parallel max: 10 -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2020-12-29-bed-presence-detection-with-aqara-window-and-door-sensor-and-a-cheap-car-part/index.md b/blog/2020-12-29-bed-presence-detection-with-aqara-window-and-door-sensor-and-a-cheap-car-part/index.md index b2547a8..bff5b6f 100644 --- a/blog/2020-12-29-bed-presence-detection-with-aqara-window-and-door-sensor-and-a-cheap-car-part/index.md +++ b/blog/2020-12-29-bed-presence-detection-with-aqara-window-and-door-sensor-and-a-cheap-car-part/index.md @@ -40,4 +40,6 @@ binary_sensor: friendly_name: "Bed occupancy" device_class: occupancy value_template: "{{is_state('binary_sensor.bed_occupancy_door_side', 'off') or is_state('binary_sensor.bed_occupancy_window_side', 'off')}}" -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2021-01-06-send-and-receive-sms-in-home-assistant-with-gsm-modem/index.md b/blog/2021-01-06-send-and-receive-sms-in-home-assistant-with-gsm-modem/index.md index 58af3c4..501a99d 100644 --- a/blog/2021-01-06-send-and-receive-sms-in-home-assistant-with-gsm-modem/index.md +++ b/blog/2021-01-06-send-and-receive-sms-in-home-assistant-with-gsm-modem/index.md @@ -42,4 +42,6 @@ action: ![Parsing action](parse_action.png) -Here we are checking for the `engine is off` text in incoming SMS to perform some action. For example, to set the value of some `input_boolean`. \ No newline at end of file +Here we are checking for the `engine is off` text in incoming SMS to perform some action. For example, to set the value of some `input_boolean`. + + \ No newline at end of file diff --git a/blog/2021-01-13-adding-wifi-power-control-to-an-integrated-amplifier/index.md b/blog/2021-01-13-adding-wifi-power-control-to-an-integrated-amplifier/index.md index 3552419..fe5de32 100644 --- a/blog/2021-01-13-adding-wifi-power-control-to-an-integrated-amplifier/index.md +++ b/blog/2021-01-13-adding-wifi-power-control-to-an-integrated-amplifier/index.md @@ -105,3 +105,5 @@ switch: ``` That’s it for today. Thanks for reading. + + \ No newline at end of file diff --git a/blog/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md b/blog/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md index f4e0391..8af6515 100644 --- a/blog/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md +++ b/blog/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md @@ -237,4 +237,6 @@ Before placing our power supply inside the TV we need to make sure it is isolate So the overall picture is looking like this: -![](overview.png) \ No newline at end of file +![](overview.png) + + \ No newline at end of file diff --git a/blog/2021-01-15-ir-code-reader-with-esp8266-wemos-d1-mini-and-esphome/index.md b/blog/2021-01-15-ir-code-reader-with-esp8266-wemos-d1-mini-and-esphome/index.md index 73d3d1b..6305d27 100644 --- a/blog/2021-01-15-ir-code-reader-with-esp8266-wemos-d1-mini-and-esphome/index.md +++ b/blog/2021-01-15-ir-code-reader-with-esp8266-wemos-d1-mini-and-esphome/index.md @@ -85,4 +85,6 @@ Compile, flash, open logs and start firing into our device with your IR remote. [17:34:51][D][remote.samsung:055]: Received Samsung: data=0xE0E020DF ``` -You can now use this data with the ESPHome [Remote Transmitter](https://esphome.io/components/remote_transmitter.html) component to build, for example, something like [this](/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md). \ No newline at end of file +You can now use this data with the ESPHome [Remote Transmitter](https://esphome.io/components/remote_transmitter.html) component to build, for example, something like [this](/2021-01-13-building-wifi-ir-remote-control-for-any-tv-with-esp8266-wemos-d1-mini-and-esphome/index.md). + + \ No newline at end of file diff --git a/blog/2021-01-15-using-stepper-motor-to-control-amplifier-volume-knob/index.md b/blog/2021-01-15-using-stepper-motor-to-control-amplifier-volume-knob/index.md index 26a383a..ddb8eb0 100644 --- a/blog/2021-01-15-using-stepper-motor-to-control-amplifier-volume-knob/index.md +++ b/blog/2021-01-15-using-stepper-motor-to-control-amplifier-volume-knob/index.md @@ -120,4 +120,6 @@ Decreasing the volume action is the same, but with negative `target`: service: esphome.amplifier_set_volume data: target: -50 -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2023-10-31-hosting-ghost-blog-on-synology-nas/index.md b/blog/2023-10-31-hosting-ghost-blog-on-synology-nas/index.md index d9b533c..3376a2b 100644 --- a/blog/2023-10-31-hosting-ghost-blog-on-synology-nas/index.md +++ b/blog/2023-10-31-hosting-ghost-blog-on-synology-nas/index.md @@ -119,4 +119,6 @@ You'll get an email notification on the address added here when there will be ti After certificate generation, we should open Settings on the same Certificates tab, find our domain service, and choose the newly generated certificate for it. -That's it! \ No newline at end of file +That's it! + + \ No newline at end of file diff --git a/blog/2023-12-19-monitor-usb-ups-connected-to-synology-nas-in-home-assistant/index.md b/blog/2023-12-19-monitor-usb-ups-connected-to-synology-nas-in-home-assistant/index.md index e025fd6..1ef8d8b 100644 --- a/blog/2023-12-19-monitor-usb-ups-connected-to-synology-nas-in-home-assistant/index.md +++ b/blog/2023-12-19-monitor-usb-ups-connected-to-synology-nas-in-home-assistant/index.md @@ -43,4 +43,6 @@ In your Home Assistant go to _Settings -> Devices & services_ and click the _"Ad In the configuration window that appeared you need to set your NAS's local IP address as a _Host_ and leave the _Port_ number unchanged. -Hit _Submit_ and you are done. \ No newline at end of file +Hit _Submit_ and you are done. + + \ No newline at end of file diff --git a/blog/2023-12-19-restart-or-shutdown-your-proxmox-node-from-home-assistant-automation/index.md b/blog/2023-12-19-restart-or-shutdown-your-proxmox-node-from-home-assistant-automation/index.md index 17cd26c..f61a533 100644 --- a/blog/2023-12-19-restart-or-shutdown-your-proxmox-node-from-home-assistant-automation/index.md +++ b/blog/2023-12-19-restart-or-shutdown-your-proxmox-node-from-home-assistant-automation/index.md @@ -54,4 +54,6 @@ The authorization header should have the next format: `PVEAPIToken= \ No newline at end of file diff --git a/blog/2025-02-15-wireguard-tunnel-from-ubuntu-vps-to-homelab-through-unifi-vpn-server/index.md b/blog/2025-02-15-wireguard-tunnel-from-ubuntu-vps-to-homelab-through-unifi-vpn-server/index.md index 73d1aff..db7fb74 100644 --- a/blog/2025-02-15-wireguard-tunnel-from-ubuntu-vps-to-homelab-through-unifi-vpn-server/index.md +++ b/blog/2025-02-15-wireguard-tunnel-from-ubuntu-vps-to-homelab-through-unifi-vpn-server/index.md @@ -105,4 +105,6 @@ And up it back with a system service, also enabling it: sudo systemctl start wg-quick@wg0 && sudo systemctl enable wg-quick@wg0 ``` -Further interface control should be performed through `systemctl` as well like `systemctrl stop`, `systemctl restart` or `systemctl status`. \ No newline at end of file +Further interface control should be performed through `systemctl` as well like `systemctrl stop`, `systemctl restart` or `systemctl status`. + + \ No newline at end of file diff --git a/blog/2025-05-21-make-one-proxmox-node-to-wol-another/index.md b/blog/2025-05-21-make-one-proxmox-node-to-wol-another/index.md index 0617f43..5f1fa77 100644 --- a/blog/2025-05-21-make-one-proxmox-node-to-wol-another/index.md +++ b/blog/2025-05-21-make-one-proxmox-node-to-wol-another/index.md @@ -98,4 +98,6 @@ Cron job line to add: ``` @reboot sleep 30s && /usr/sbin/etherwake -i vmbr0 -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.mdx b/blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.md similarity index 99% rename from blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.mdx rename to blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.md index 3ec3b3e..70f0e87 100644 --- a/blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.mdx +++ b/blog/2025-10-07-proxmox-ve-on-hetzner-dedicated-server/index.md @@ -184,4 +184,4 @@ Have no idea why everyone wants to write a conclusion for each post nowadays. It Have a nice tinkering. -import BrowserWindow from '@site/src/components/BlogDiscussions'; \ No newline at end of file + \ No newline at end of file diff --git a/package.json b/package.json index 36fd665..848d133 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yevi-org", - "version": "0.2.2", + "version": "0.3.0", "private": true, "scripts": { "docusaurus": "docusaurus", diff --git a/src/components/BlogDiscussions/index.js b/src/components/BlogDiscussions/index.js index 19ec421..4c4184e 100644 --- a/src/components/BlogDiscussions/index.js +++ b/src/components/BlogDiscussions/index.js @@ -1,112 +1,16 @@ import styles from './styles.module.css'; -const FeatureList = [ - { - title: 'Blog', - link: 'blog', - Svg: require('@site/static/icons/blog.svg').default, - description: ( - <> - Some notes, interesting things and projects. - - ), - }, - { - title: 'Git', - link: 'https://git.nicelycomposed.codes/yehor', - Svg: require('@site/static/icons/gitea.svg').default, - description: ( - <> - My code - - ), - }, - { - title: 'Mastodon', - link: 'https://techhub.social/@estevez', - Svg: require('@site/static/icons/mastodon.svg').default, - description: ( - <> - My micro blog at techhub.social - - ), - }, - { - title: 'Matrix', - link: 'https://matrix.to/#/@yehor:vi.place', - Svg: require('@site/static/icons/matrix.svg').default, - description: ( - <> - If you want to chat (with end-to-end encryption) - - ), - }, - { - title: 'Pixelfed', - link: 'https://pixelfed.social/estevez', - Svg: require('@site/static/icons/pixelfed.svg').default, - description: ( - <> - For some photography - - ), - }, - { - title: 'GitHub', - link: 'https://github.com/estevez-dev', - Svg: require('@site/static/icons/github.svg').default, - description: ( - <> - Some forks and contributions - - ), - }, - { - title: 'Untappd', - link: 'https://untappd.com/user/estevezz', - Svg: require('@site/static/icons/untappd.svg').default, - description: ( - <> - Budmo! - - ), - }, - { - title: 'Linkedin', - link: 'https://www.linkedin.com/in/yehor-vialov-2a362158/', - Svg: require('@site/static/icons/linkedin.svg').default, - description: ( - <> - They say I need this to find any work - - ), - }, -]; - -function Feature({ Svg, title, link, description }) { - return ( - - - - ); -} - export default function BlogDiscussions() { + const Svg = require('@site/static/icons/matrix.svg').default; + return (
- Join discussion at Matrix + + + + Join discussion at Matrix + +
); } diff --git a/src/components/BlogDiscussions/styles.module.css b/src/components/BlogDiscussions/styles.module.css index 37d1a30..040b828 100644 --- a/src/components/BlogDiscussions/styles.module.css +++ b/src/components/BlogDiscussions/styles.module.css @@ -1,6 +1,27 @@ .blogDiscussions { display: flex; + flex-direction: row; + justify-content: center; + padding: 1rem 0; +} + +.blogDiscussions_container { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; align-items: center; - padding: 2rem 0; - width: 100%; +} + +.linkText { + width: 12rem; +} + +.icon { + width: 3rem; + height: 3rem; +} + +.icon path { + fill: var(--ifm-link-color) !important; } \ No newline at end of file diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js new file mode 100644 index 0000000..20e4057 --- /dev/null +++ b/src/theme/MDXComponents.js @@ -0,0 +1,13 @@ +import React from 'react'; +// Import the original mapper +import MDXComponents from '@theme-original/MDXComponents'; +//Import custom component +import BlogDiscussions from '@site/src/components/BlogDiscussions'; + +export default { + // Re-use the default mapping + ...MDXComponents, + // Map the "" tag to our BlogDiscussions component + // `BlogDiscussions` will receive all props that were passed to `` in MDX + BlogDiscussions, +}; \ No newline at end of file