From 25e9cc785d112139a6cd174a2dfb7fce99de5671 Mon Sep 17 00:00:00 2001 From: erciccione Date: Wed, 29 Apr 2020 13:58:38 +0200 Subject: [PATCH] press-kit: partial refactoring (remove loops) --- _i18n/en.yml | 29 ++++++++++------------------- press-kit/index.md | 25 +++++++++++-------------- 2 files changed, 21 insertions(+), 33 deletions(-) diff --git a/_i18n/en.yml b/_i18n/en.yml index b87e8e79..4e02a132 100644 --- a/_i18n/en.yml +++ b/_i18n/en.yml @@ -230,25 +230,16 @@ press-kit: large: Large symbol_file: Symbol .ai file logo_file: Logo .ai file - documents: - - category: Press Documentation - publications: - - name: "Quick-Facts Sheet" - url_file: "http://www.monerooutreach.org/quick-facts.html" - abstract: > - A quick and easy to read document to know everything about Monero: history, key differentiating factors, technical fundamentals, and features in development.
- See Monero Outreach website for more information. - marketing: - - category: Marketing Material - publications: - - name: "The 'Don't buy Monero' sticker" - url_file: "https://github.com/monero-ecosystem/dont-buy-monero-sticker" - abstract: > - Spread Monero everywhere with the help of this sticker. Available in multiple languages and formats (vectors included). - - name: Guerrilla Toolkit - url_file: "https://www.monerooutreach.org/guerrilla-toolkit.html" - abstract: > - A document created by the Monero Outreach workgroup containing materials and tips for an effective guerrilla marketing campaign. + pressdoc: Press Documentation + quickfacts: "Quick-Facts Sheet" + quickfactsp: > + A quick and easy to read document to know everything about Monero: history, key differentiating factors, technical fundamentals, and features in development.
+ See Monero Outreach website for more information. + marketing: Marketing Material + dontbuysticker: "The 'Don't buy Monero' sticker" + dontbuystickerp: Spread Monero everywhere with the help of this sticker. Available in multiple languages and formats (vectors included). + guerrillakit: Guerrilla Toolkit + guerrillakitp: A document created by the Monero Outreach workgroup containing materials and tips for an effective guerrilla marketing campaign. accepting: title_gui: Instructions for the GUI diff --git a/press-kit/index.md b/press-kit/index.md index 453a9e91..30068e16 100644 --- a/press-kit/index.md +++ b/press-kit/index.md @@ -74,26 +74,23 @@ permalink: /press-kit/index.html
- {% for press in site.translations[site.lang].press-kit.documents %}
-

{{ press.category }}

+

{% t press-kit.pressdoc %}

- {% for publication in press.publications %} -

{{ publication.name }}

-

{{ publication.abstract }}

- {% endfor %} +

{% t press-kit.quickfacts %}

+

{% t press-kit.quickfactsp %}

- {% endfor %} +
- {% for entry in site.translations[site.lang].press-kit.marketing %} -

{{ entry.category }}

+

{% t press-kit.marketing %}

- {% for publication in entry.publications %} -

{{ publication.name }}

-

{{ publication.abstract }}

- {% endfor %} +

{% t press-kit.dontbuysticker %}

+

{% t press-kit.dontbuystickerp %}

+
+
+

{% t press-kit.guerrillakit %}

+

{% t press-kit.guerrillakitp %}

- {% endfor %}