From c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc Mon Sep 17 00:00:00 2001
From: Egor Tensin
Date: Mon, 1 Nov 2021 22:48:25 +0300
Subject: index.html: get rid of the always-present & in the example link
---
index.html | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'index.html')
diff --git a/index.html b/index.html
index b4a55b4..1b3f3a5 100644
--- a/index.html
+++ b/index.html
@@ -69,9 +69,14 @@ configured on interface wg0
.
You can then generate the new client's keys, feed them to this page and it will
show the configuration that can be easily consumed by the new client.
{% assign example_url = '?' %}
+{% assign first = true %}
{% for grp in page.params %}
{% for param in grp.items %}
- {% capture example_url %}{{ example_url }}&{{ param.id }}={{ param.example }}{% endcapture %}
+ {% unless first %}
+ {% capture example_url %}{{ example_url }}&{% endcapture %}
+ {% endunless %}
+ {% assign first = false %}
+ {% capture example_url %}{{ example_url }}{{ param.id }}={{ param.example }}{% endcapture %}
{% endfor %}
{% endfor %}
An example configuration (with bogus key values) can be seen
--
cgit v1.2.3