Skip to content

Commit

Permalink
Merge pull request #781 from ivpn/localization/pilot-pages
Browse files Browse the repository at this point in the history
Localization: pilot pages
  • Loading branch information
nathanrod authored Jun 3, 2024
2 parents 87b746f + be76eba commit 7315a7e
Show file tree
Hide file tree
Showing 498 changed files with 7,810 additions and 636 deletions.
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

0 comments on commit 7315a7e

Please sign in to comment.