From 31a1b6147e55ceb847786aa7a594a4f634b2d771 Mon Sep 17 00:00:00 2001 From: erciccione Date: Mon, 26 Apr 2021 10:44:53 +0200 Subject: [PATCH] make onion link point to the currently visited page onion.html now points to the page the user is on. The onion-location button will point to this page instead of the homepage. --- _includes/onion.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_includes/onion.html b/_includes/onion.html index 17f3b9f9..d0f69347 100644 --- a/_includes/onion.html +++ b/_includes/onion.html @@ -1 +1,7 @@ -http://monerotoruzizulg5ttgat2emf4d6fbmiea25detrmmy7erypseyteyd.onion/ \ No newline at end of file +{% capture onion_url %} + {% if site.lang == "en" %} + http://monerotoruzizulg5ttgat2emf4d6fbmiea25detrmmy7erypseyteyd.onion{{ page.url }} + {% else %} + http://monerotoruzizulg5ttgat2emf4d6fbmiea25detrmmy7erypseyteyd.onion/{{ site.lang }}{{ page.url }} + {% endif %} +{% endcapture %}{{ onion_url | strip }} \ No newline at end of file