From 9d868ef1f0edf4579c623c925dbbc1ee99db6f20 Mon Sep 17 00:00:00 2001 From: erciccione Date: Fri, 5 Feb 2021 12:07:33 +0000 Subject: [PATCH] Prepare repo for deployment of onion service - Add link to the footer - Add _includes/onion.html (the address will be pulled from here anywere on the website) - Add /onion.txt which is signed by binaryFate and contains the onion addresses - Add onion-location header as a meta tag in _includes/head.html Co-authored-by: binaryFate --- README.md | 5 +++++ _includes/footer.html | 1 + _includes/head.html | 1 + _includes/onion.html | 1 + css/custom.css | 4 ++++ onion.txt | 30 ++++++++++++++++++++++++++++++ 6 files changed, 42 insertions(+) create mode 100644 _includes/onion.html create mode 100644 onion.txt diff --git a/README.md b/README.md index 24b8c148..3e45a0ec 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,11 @@ A few random points of note: - If you want to add a new page to the navigation, you should go to ALL LANGUAGES in the `_data/lang` folder and add the page. - It is strongly strongly STRONGLY encouraged that if you make a change, you - at the minimum - test it on your local machine before submitting a PR. Sometimes unexpected things may happen due to a change. If you change a page, check the whole page on multiple screen sizes and browsers to make sure there wasn't any collateral damage. +### Tor +This website is available natively on Tor. The onion address is in `_includes/onion.html` and a signed document containing the same address is in `/onion.txt`. The address in these 2 files must *always* match. The `onion.txt` files also includes the onion address of the 'downloads' subdomain. + +If you want to post getmonero's onion address somewhere on the website, don't simply write it, instead include it using `{% include onion.html %}`. This avoids problems with typos and allow us top change the address only in one file if necessary. + ## Translation In this section you'll find the info you need to translate a page and add a new translation, but keep in mind that Monero has a [Localization Workgroup](https://github.com/monero-ecosystem/monero-translations) who coordinate and give support to translators-volunteers. For live support/request of infos, come chat on `#monero-translations` (Freenode/IRC, riot/matrix, MatterMost). diff --git a/_includes/footer.html b/_includes/footer.html index 7d1c56d8..aeb009a1 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -45,6 +45,7 @@