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.
This commit is contained in:
erciccione 2021-04-26 10:44:53 +02:00
parent 20dabe8a56
commit 31a1b6147e
No known key found for this signature in database
GPG Key ID: 762AF8C608E56CDF

View File

@ -1 +1,7 @@
http://monerotoruzizulg5ttgat2emf4d6fbmiea25detrmmy7erypseyteyd.onion/
{% 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 }}