From e1ad7d676ce373f8dedb51d7f7d36019201794da Mon Sep 17 00:00:00 2001 From: c0ffeeca7 Date: Wed, 10 May 2023 09:23:00 +0200 Subject: [PATCH] Extract 'affiliated links' text module for reuse --- source/_includes/esphome/affiliated_links.markdown | 5 +++++ source/docs/esphome/adding_esphome_media_players.markdown | 6 +----- source/docs/esphome/increasing_bluetooth_reach.markdown | 6 +----- 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 source/_includes/esphome/affiliated_links.markdown diff --git a/source/_includes/esphome/affiliated_links.markdown b/source/_includes/esphome/affiliated_links.markdown new file mode 100644 index 00000000000..4c30d994016 --- /dev/null +++ b/source/_includes/esphome/affiliated_links.markdown @@ -0,0 +1,5 @@ +### Affiliated links + +Affiliated links are used on this website to support ESPHome development. Use coupon code `NABUCASA` on [M5Stack](https://shop.m5stack.com/discount/NABUCASA?ref=NabuCasa) for 5% off your order. + +[ESPHome](https://esphome.io)— Installer powered by [ESP Web Tools](https://esphome.github.io/esp-web-tools/) \ No newline at end of file diff --git a/source/docs/esphome/adding_esphome_media_players.markdown b/source/docs/esphome/adding_esphome_media_players.markdown index cbbe5f36702..6d3fff1d885 100644 --- a/source/docs/esphome/adding_esphome_media_players.markdown +++ b/source/docs/esphome/adding_esphome_media_players.markdown @@ -224,11 +224,7 @@ To install the ESPHome software on the device, follow these steps: * The device is adoptable in [the ESPHome dashboard](https://my.home-assistant.io/redirect/supervisor_addon/?addon=5c53de3b_esphome&repository_url=https%3A%2F%2Fgithub.com%2Fesphome%2Fhome-assistant-addon). * The YAML configuration is on [GitHub](https://github.com/esphome/media-players/) -### Affiliated links - -Affiliated links are used on this website to support ESPHome development. Use Coupon code `NABUCASA` on [M5Stack](https://shop.m5stack.com/discount/NABUCASA?ref=NabuCasa) for 5% off your order. - -[ESPHome](https://esphome.io)— Installer powered by [ESP Web Tools](https://esphome.github.io/esp-web-tools/) +{% include /esphome/affiliated_links.markdown %}