Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization: pilot pages #781

Merged
merged 100 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
8edb437
Updated HUGO, started spanish localisation
Apr 12, 2024
2cdd92b
merge main
May 10, 2024
f6c17b0
˘Localization: Added 3 pilot pages
May 10, 2024
8550d06
Localization: Added team page
May 13, 2024
577910a
Update antitracker.md
gorkapernas May 14, 2024
acca7c4
Update antitracker.md
gorkapernas May 14, 2024
aab35a8
Localization: Update hugo config
May 14, 2024
4bddfef
Localization: Update hugo config
May 14, 2024
5e80b67
Localization: Update hugo config
May 14, 2024
036045d
Localization: Fix pilot pages urls
May 15, 2024
718880a
Localization: Fix pilot pages urls
May 16, 2024
d9cf453
Localization: Fix pilot pages urls
May 16, 2024
49d0ccc
Update transparency-report.md
gorkapernas May 16, 2024
e089ffd
Update what-is-vpn.md
gorkapernas May 16, 2024
8c837f0
Update home.md
gorkapernas May 17, 2024
3dff653
Update home.md
gorkapernas May 17, 2024
f7f0038
Update home.md
gorkapernas May 17, 2024
fc926fa
Update home.md
May 17, 2024
a8eb191
Update home.md
May 20, 2024
5a2e3da
Update home.md
May 20, 2024
934eaeb
Localization: Update footer dynamic links
May 21, 2024
ec27e81
Update home.md
gorkapernas May 21, 2024
2105761
Localization: Fix broken links
May 21, 2024
cfc34f5
Localization: Fix broken links
May 21, 2024
4cc7293
Localization: Fix broken links
May 21, 2024
4555621
Localisation: Add tags redirections
May 22, 2024
8fe77b7
Add files via upload
gorkapernas May 23, 2024
3198f4f
Update team.md
gorkapernas May 23, 2024
20017a4
Localisation: Add tags redirections
May 23, 2024
2a2abfb
Localisation: Added accounts page
May 23, 2024
855e8f9
Update ethics.md
gorkapernas May 23, 2024
e6ba5ea
Update ethics.md
gorkapernas May 23, 2024
9f56d15
Update ethics.md
gorkapernas May 23, 2024
db8f210
Localisation: Improve blog redirections
May 23, 2024
37af70c
Update ethics.md
gorkapernas May 23, 2024
69a3a41
Update team.md
gorkapernas May 23, 2024
4a4e2b4
Update ethics.md
gorkapernas May 23, 2024
e1a0cf4
Update ethics.md
gorkapernas May 23, 2024
090da4d
Update ethics.md
gorkapernas May 23, 2024
9fc2ce5
Localisation: Updated header links with ethics
May 23, 2024
1f53a7f
Localisation: Added wireguard page
May 24, 2024
a21040f
Localisation: Added refunds page
May 24, 2024
ee6d588
Localisation: Added terms of service page
May 24, 2024
32c7445
Localisation: Added terms of service page
May 24, 2024
0b55d24
Localisation: Added apps-android page
May 24, 2024
1be1e3a
Localisation: Added servers page
May 26, 2024
3c8c51c
Update privacy-policy.md
gorkapernas May 27, 2024
9d5c9f5
Add files via upload
gorkapernas May 27, 2024
ae4d50c
Update apps-windows.md
gorkapernas May 27, 2024
61a3d23
Add files via upload
gorkapernas May 27, 2024
ee2f0ab
Update apps-windows.md
gorkapernas May 27, 2024
f937d32
Update apps-windows.md
gorkapernas May 27, 2024
ae74d9a
Update apps-android.md
gorkapernas May 27, 2024
85e9a66
Update apps-windows.md
gorkapernas May 27, 2024
e3d18e4
Update apps-windows.md
gorkapernas May 27, 2024
29f9205
Update apps-macos.md
gorkapernas May 27, 2024
5dcd766
Add files via upload
gorkapernas May 27, 2024
2e0965f
Update apps-windows.md
gorkapernas May 27, 2024
23ad8a6
Localisation: status and pricing page
May 27, 2024
b12b6eb
Update apps-macos.md
gorkapernas May 27, 2024
88a0f1f
Update apps-windows.md
gorkapernas May 27, 2024
f36467a
Update apps-windows.md
gorkapernas May 27, 2024
f223f6a
Update apps-linux.md
gorkapernas May 28, 2024
07076d9
Add files via upload
gorkapernas May 28, 2024
ec3cf9f
Update apps-ios.md
gorkapernas May 28, 2024
166edaa
Add files via upload
gorkapernas May 28, 2024
21c0e1d
Update apps-android.md
gorkapernas May 28, 2024
78fb77c
Update pricing.md
gorkapernas May 28, 2024
3c50675
Update wireguard-vpn.md
gorkapernas May 28, 2024
7032896
Localisation: Pricing page
May 28, 2024
1d52700
Update terms-of-service.md
gorkapernas May 28, 2024
99f8d37
Update servers.md
gorkapernas May 28, 2024
f1c9c06
Update refunds.md
gorkapernas May 28, 2024
54b2307
Update privacy-policy.md
gorkapernas May 28, 2024
a99185e
Update es.json
gorkapernas May 28, 2024
7238255
Update apps-windows.md
gorkapernas May 28, 2024
7d213ff
Update apps-macos.md
gorkapernas May 28, 2024
6bbb219
Update apps-ios.md
gorkapernas May 28, 2024
00cbc9c
Update transparency-report.md
gorkapernas May 29, 2024
c147b31
Update legal-process-guidelines.md
gorkapernas May 29, 2024
212b8c1
Add files via upload
gorkapernas May 29, 2024
1ab0ece
Update legal-process-guidelines.md
gorkapernas May 29, 2024
a6018ce
Update transparency-report.md
gorkapernas May 29, 2024
2945f83
Localisation: accounts area
May 29, 2024
85b6842
Localisation: accounts area
May 29, 2024
4ca8324
Localisation: Added alternate meta tags, removed header menu language…
May 30, 2024
58c7aa5
Localisation: Removed accounts translation
May 30, 2024
a7eeaea
Localisation: Removed accounts translation
May 30, 2024
6db3488
Localisation: Removed accounts translation
May 30, 2024
e308496
Update es.json
gorkapernas May 30, 2024
6480687
Localisation: Enable only pilot pages
May 30, 2024
7b0bc2f
merge main
Jun 3, 2024
dd1e9cc
Update antitracker.md
gorkapernas Jun 3, 2024
8a3315c
Update what-is-vpn.md
gorkapernas Jun 3, 2024
c1f72b4
Localisation: Removed footer links for not translated pages, added st…
Jun 3, 2024
f7e134f
Localisation: Removed translated footer links
Jun 3, 2024
f495c18
Localization: Added status page
Jun 3, 2024
fb3d37d
Responsive table changes
Jun 3, 2024
6b500ee
Responsive table changes
Jun 3, 2024
be76eba
Fix nginx rewrites
Jun 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,24 @@ RUN yarn --cwd ./src/themes/ivpn-v3/ run copy:manifest
RUN sed -E -e 's/^layout:(.*)$/layout: mobile-app/' \
-e 's/^url:(.*)$/url: \/privacy-mobile-app\//' \
-e 's/^canonical:(.*)$/canonical: \/privacy\//' \
./src/content/pages/privacy-policy.md > ./src/content/pages/privacy-policy-mobile.md \
./src/content/en/pages/privacy-policy.md > ./src/content/en/pages/privacy-policy-mobile.md \
&& sed -E -e 's/^layout:(.*)$/layout: mobile-app/' \
-e 's/^url:(.*)$/url: \/tos-mobile-app\//' \
-e 's/^canonical:(.*)$/canonical: \/tos\//' \
./src/content/pages/terms-of-service.md > ./src/content/pages/terms-of-service-mobile.md
./src/content/en/pages/terms-of-service.md > ./src/content/en/pages/terms-of-service-mobile.md

#RUN sed -E -e 's/^layout:(.*)$/layout: mobile-app/' \
# -e 's/^url:(.*)$/url: \/privacy-mobile-app\//' \
# -e 's/^canonical:(.*)$/canonical: \/privacy\//' \
# ./src/content/es/pages/privacy-policy.md > ./src/content/es/pages/privacy-policy-mobile.md \
# && sed -E -e 's/^layout:(.*)$/layout: mobile-app/' \
# -e 's/^url:(.*)$/url: \/tos-mobile-app\//' \
# -e 's/^canonical:(.*)$/canonical: \/tos\//' \
# ./src/content/es/pages/terms-of-service.md > ./src/content/es/pages/terms-of-service-mobile.md

RUN hugo -s ./src -b ${BASE_URL} --environment $ENV -d /opt/build/public

FROM nginx:1.18

COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /opt/build/public /var/www/static
COPY --from=builder /opt/build/public /var/www/static
9 changes: 7 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ server {
charset utf-8;

add_header X-Frame-Options "SAMEORIGIN";

location ~ ^/account/payment/.*/invoice {
try_files $uri/ $uri /account/headless/index.html;
disable_symlinks off;
Expand All @@ -37,7 +37,7 @@ server {
error_page 404 /404.html;
location = /404.html {
root /var/www/static;
internal;
internal;
}

error_log /var/log/nginx/error.log;
Expand Down Expand Up @@ -286,6 +286,11 @@ server {
rewrite ^/setup/gnu-linux-wireguard$ /setup/linux-wireguard/ permanent;
rewrite ^/pptp-vs-l2tp-vs-openvpn$ /pptp-vs-ipsec-ikev2-vs-openvpn-vs-wireguard/ permanent;
rewrite ^/what-is-a-multihop-vpn$ / permanent;

rewrite ^/blog$ /en/blog/ permanent;
rewrite ^/blog/$ /en/blog/ permanent;
rewrite ^/blog/(.*) /en/blog/$1 permanent;

rewrite ^/data-retention-laws/united-kingdom$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent;
rewrite ^/data-retention-laws/united-states$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent;
rewrite ^/comparison-of-internet-privacy-laws$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent;
Expand Down
205 changes: 22 additions & 183 deletions src/config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
baseURL = "https://www.ivpn.net"
languageCode = "en-us"
baseURL = "https://www.ivpn.net"
title = "IVPN"
theme = "ivpn-v3"
paginate = 8
summaryLength = 35
disableKinds = ["sitemap", "taxonomy"]

pygmentsUseClasses=true
pygmentsCodefencesGuessSyntax=true
pygmentsCodefences=true
pygmentsStyle="monokai"
pygmentsOptions="noclasses=false"

DefaultContentLanguage = "en"
defaultContentLanguageInSubdir = true

[languages]
[languages.en]
languageCode = "en"
contentDir = 'content/en'
languageName = 'English'
languageDirection = 'ltr'
weight = 1
[languages.es]
languageCode = "es"
contentDir = 'content/es'
languageName = 'Español'

languageDirection = 'ltr'
weight = 2

[markup.goldmark.renderer]
unsafe= true
Expand All @@ -34,9 +49,9 @@ pygmentsOptions="noclasses=false"
authors = "authors"

[permalinks]
categories = "/blog/categories/:slug/"
tags = "/blog/tags/:slug/"
authors = "/blog/authors/:slug/"
categories = "blog/categories/:slug/"
tags = "blog/tags/:slug/"
authors = "blog/authors/:slug/"

[related]
threshold = 80
Expand All @@ -51,180 +66,4 @@ pygmentsOptions="noclasses=false"
[[related.indices]]
name = "date"
weight = 60
pattern = "200601"

[menu]
[[menu.main]]
identifier = "team"
name = "Team"
url = "/team/"
weight = 10

[[menu.main]]
identifier = "ethics"
name = "Ethics"
url = "/ethics/"
weight = 20

[[menu.main]]
identifier = "privacy"
name = "Privacy"
url = "/privacy/"
weight = 30

[[menu.main]]
identifier = "blog"
name = "Blog"
url = "/blog/"
weight = 40

[[menu.main]]
identifier = "prices"
name = "Pricing"
url = "/pricing/"
weight = 45


[[menu.main]]
identifier = "download"
name = "Apps"
url = "/apps/"
weight = 50

[[menu.main]]
identifier = "guides"
name = "Guides"
url = "/privacy-guides/"
weight = 60

[[menu.main]]
identifier = "help"
name = "Help"
url = "/knowledgebase/general/"
weight = 70

[[menu.footercolone]]
identifier = "generate-account"
name = "Generate Account"
url = "/signup/"
weight = 5

[[menu.footercolone]]
identifier = "light"
name = "IVPN Light"
url = "/light/"
weight = 5

[[menu.footercolone]]
identifier = "wireguard"
name = "WireGuard® VPN"
url = "/wireguard/"
weight = 10

[[menu.footercolone]]
identifier = "antitracker"
name = "AntiTracker"
url = "/antitracker/"
weight = 20

[[menu.footercolone]]
identifier = "what-is-a-vpn"
name = "What is a VPN"
url = "/what-is-a-vpn/"
weight = 40

[[menu.footercolone]]
identifier = "pptp-vs-ipsec-ikev2-vs-openvpn-vs-wireguard"
name = "Protocol Comparison"
url = "/pptp-vs-ipsec-ikev2-vs-openvpn-vs-wireguard/"
weight = 70

[[menu.footercoltwo]]
identifier = "manifesto"
name = "Our Manifesto"
url = "/manifesto/"
weight = 10

[[menu.footercoltwo]]
identifier = "status"
name = "Servers"
url = "/status/"
weight = 20

[[menu.footercoltwo]]
identifier = "transparency-report"
name = "Transparency Report"
url = "/transparency-report/"
weight = 30

[[menu.footercoltwo]]
identifier = "canary"
name = "Warrant Canary"
url = "/resources/canary.txt"
weight = 40

[[menu.footercoltwo]]
identifier = "supported-projects"
name = "Supported Projects"
url = "/supported-projects/"
weight = 50

[[menu.footercolthree]]
identifier = "vulnerability-reporting"
name = "Report Vulnerability"
url = "/vulnerability-reporting/"
weight = 10

[[menu.footercolthree]]
identifier = "legal-process-guidelines"
name = "Legal Guidelines"
url = "/legal-process-guidelines/"
weight = 20

[[menu.footercolthree]]
identifier = "tos"
name = "Terms of Service"
url = "/tos/"
weight = 30

[[menu.footercolthree]]
identifier = "privacy-policy"
name = "Privacy Policy"
url = "/privacy/"
weight = 50

[[menu.footercolthree]]
identifier = "refund-policy"
name = "Refund Policy"
url = "/refunds/"
weight = 60

[[menu.footercolfour]]
identifier = "contact"
name = "Contact us"
url = "/contactus/"
weight = 10

[[menu.footercolfour]]
identifier = "reddit"
name = "Reddit"
url = "https://www.reddit.com/r/IVPN/"
weight = 20

[[menu.footercolfour]]
identifier = "twitter"
name = "Twitter"
url = "https://twitter.com/ivpnnet"
weight = 30

[[menu.footercolfour]]
identifier = "github"
name = "GitHub"
url = "https://github.com/ivpn"
weight = 40

[[menu.footercolfour]]
identifier = "mastodon"
name = "Mastodon"
url = "https://mastodon.social/@ivpn"
weight = 50
pattern = "200601"
Loading
Loading