aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-11-01 22:48:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-11-01 22:48:25 +0300
commitc3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc (patch)
treef32d78424f0a2c92ec8ada95713f6594e2358826 /index.html
parentindex.html: use escape_uri filter where appropriate (diff)
downloadwireguard-config-c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc.tar.gz
wireguard-config-c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc.zip
index.html: get rid of the always-present & in the example link
Diffstat (limited to 'index.html')
-rw-r--r--index.html7
1 files changed, 6 insertions, 1 deletions
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 <code>wg0</code>.
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.</p>
{% 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 %}
<p>An example configuration (with bogus key values) can be seen