From 8b54d570564dee0085b431dc856a2c50cf9a6fb0 Mon Sep 17 00:00:00 2001 From: Cassius de Leeuwe Date: Sun, 31 Jan 2021 16:57:45 +0700 Subject: [PATCH 01/10] update ID page (WIP) --- bertytech/content/id.ar.md | 20 ++++++ bertytech/content/id.cn.md | 20 ++++++ bertytech/content/id.eo.md | 20 ++++++ bertytech/content/id.es.md | 20 ++++++ bertytech/content/id.fr.md | 20 ++++++ bertytech/content/id.hi.md | 20 ++++++ bertytech/content/id.id-id.md | 20 ++++++ bertytech/content/id.md | 20 ++++++ bertytech/content/id.pt.md | 20 ++++++ bertytech/content/id.ru.md | 20 ++++++ bertytech/content/id.sl.md | 20 ++++++ bertytech/content/id.uk.md | 20 ++++++ .../shortcodes/display_section_id.html | 62 +++++++++++++++++++ .../layouts/shortcodes/display_section_id.md | 29 --------- 14 files changed, 302 insertions(+), 29 deletions(-) create mode 100644 bertytech/layouts/shortcodes/display_section_id.html delete mode 100644 bertytech/layouts/shortcodes/display_section_id.md diff --git a/bertytech/content/id.ar.md b/bertytech/content/id.ar.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.ar.md +++ b/bertytech/content/id.ar.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.cn.md b/bertytech/content/id.cn.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.cn.md +++ b/bertytech/content/id.cn.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.eo.md b/bertytech/content/id.eo.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.eo.md +++ b/bertytech/content/id.eo.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.es.md b/bertytech/content/id.es.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.es.md +++ b/bertytech/content/id.es.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.fr.md b/bertytech/content/id.fr.md index ff7260e229d..821eb58be06 100644 --- a/bertytech/content/id.fr.md +++ b/bertytech/content/id.fr.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Ouvrez l''application Berty sur votre téléphone et scannez ce code pour faire une demande de contact à ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.hi.md b/bertytech/content/id.hi.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.hi.md +++ b/bertytech/content/id.hi.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.id-id.md b/bertytech/content/id.id-id.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.id-id.md +++ b/bertytech/content/id.id-id.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.md b/bertytech/content/id.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.md +++ b/bertytech/content/id.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.pt.md b/bertytech/content/id.pt.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.pt.md +++ b/bertytech/content/id.pt.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.ru.md b/bertytech/content/id.ru.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.ru.md +++ b/bertytech/content/id.ru.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.sl.md b/bertytech/content/id.sl.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.sl.md +++ b/bertytech/content/id.sl.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/content/id.uk.md b/bertytech/content/id.uk.md index b3e3f5a52e0..ad61e5dc46e 100644 --- a/bertytech/content/id.uk.md +++ b/bertytech/content/id.uk.md @@ -1,6 +1,26 @@ --- title: subtitle: 'Open the Berty app on your phone and scan this code to make a contact request to ' +what_is_berty: + title: What's Berty? + items: + - icon: /img/icon_private.svg + title: Private + body: 100% anonymous account no email - no phone number + - icon: fal fa-lock-alt + title: Secure + body: end-to-end encryption perfect forward secrecy + - icon: /img/icon_distributed.svg + title: Distributed + body: ...and decentralized peer-to-peer network + - icon: fab fa-github + title: Open source + body: read it, fork it, improve it join us on Discord + button_text: More about Berty +download_berty: + title: Don't have Berty yet? + body: Berty is a privacy-first messaging app that works with or without internet access cellular data or trust in the network + button_text: Download Berty --- {{< display_section_id >}} diff --git a/bertytech/layouts/shortcodes/display_section_id.html b/bertytech/layouts/shortcodes/display_section_id.html new file mode 100644 index 00000000000..25db67be2fc --- /dev/null +++ b/bertytech/layouts/shortcodes/display_section_id.html @@ -0,0 +1,62 @@ +
+
+
+
+ +
+
+
+ + +
+ {{ with .Page.Params.download_berty }} +
+

{{.title}}

+ +

{{.body}}

+
+ {{ end }} +
+ + +
+ + + +
+ + +
+ {{ with .Page.Params.what_is_berty }} +
+

{{.title}}

+
+ {{ range .items }} +
+ +

{{.title}}

+

{{.body | safeHTML }}

+
+ {{ end }} +
+

{{.body}}

+
+ {{ end }} +
+
+
+
diff --git a/bertytech/layouts/shortcodes/display_section_id.md b/bertytech/layouts/shortcodes/display_section_id.md deleted file mode 100644 index e0ae6701711..00000000000 --- a/bertytech/layouts/shortcodes/display_section_id.md +++ /dev/null @@ -1,29 +0,0 @@ -
-
-
-
- -
-
-
- - - -
-
-
From 51c095f7c4ab0713492339a892b1525d74dc4fdf Mon Sep 17 00:00:00 2001 From: Cassius de Leeuwe Date: Sun, 31 Jan 2021 19:26:38 +0700 Subject: [PATCH 02/10] Add download berty block (WIP) --- .../shortcodes/display_section_id.html | 52 ++++++++++++++----- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/bertytech/layouts/shortcodes/display_section_id.html b/bertytech/layouts/shortcodes/display_section_id.html index 25db67be2fc..f2df7689826 100644 --- a/bertytech/layouts/shortcodes/display_section_id.html +++ b/bertytech/layouts/shortcodes/display_section_id.html @@ -1,3 +1,4 @@ +{{ $ctx := . }}
@@ -8,12 +9,23 @@
-
+
{{ with .Page.Params.download_berty }} -
-

{{.title}}

- -

{{.body}}

+
+

+ {{.title}} +

+
+
+ {{ partial "img" (dict "ctx" $ctx "src" $.Site.Params.logoSVG "width" "300" "height" "150") }} +
+
+
{{ end }}
@@ -21,7 +33,7 @@

{{.title}}

-