diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-01 22:48:25 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-01 22:48:25 +0300 |
commit | c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc (patch) | |
tree | f32d78424f0a2c92ec8ada95713f6594e2358826 | |
parent | index.html: use escape_uri filter where appropriate (diff) | |
download | wireguard-config-c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc.tar.gz wireguard-config-c3c936a63d8ce6d5eb5089e1b8e484c2b83ca0fc.zip |
index.html: get rid of the always-present & in the example link
Diffstat (limited to '')
-rw-r--r-- | index.html | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |