diff --git a/config.toml b/config.toml index e9c0412..40072fa 100644 --- a/config.toml +++ b/config.toml @@ -2,27 +2,11 @@ baseurl = "http://pmpc.mehl.mx/" languageCode = "en-us" title = "Public Money, Public Code" theme = "hugo-creative-theme" +DefaultContentLanguage = "en" [params] - - # You can use Markdown syntax for urls [text](//url.to/source) for - # most longer texts. - - # All icons using Fontawesome's icon font. Look at http://fontawesome.io/icons/ - # for more icons. The icons are represented by their corresponding - # CSS class. - - # All projects of the portfolio are defined in their own files. - # You can find example projects at 'exampleSite/data/projects'. Copy the 'projects' - # folder into the 'data' directory at the root of this Hugo site. - # For more information take a look at the README. - - # To provide some metadata for search engines feel free to add some - # information about you and your website. - name = "Free Software Foundation Europe" + name = "Free Software Foundation Europe (FSFE)" description = "Public Money, Public Code - A campaign for releasing publicly financed software as Free Software" - - # The path must be relative to the static folder favicon = "favicon.ico" @@ -30,12 +14,12 @@ theme = "hugo-creative-theme" [params.navigation] brand = "Public Money, Public Code" - [params.navigation.links] - about = "About" - reasons = "Reasons" - resources = "Resources" - spread = "Spread" - contact = "Contact" + [params.navigation.links] + about = "About" + reasons = "Reasons" + resources = "Resources" + spread = "Spread" + contact = "Contact" # Start banner @@ -99,3 +83,81 @@ theme = "hugo-creative-theme" description = "Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!" phone = "123-456-6789" email = "feedback@startbootstrap.com" + + + # === TRANSLATIONS === + + [Languages] + [Languages.en] + + # GERMAN + [Languages.de] + languageCode = "de-DE" + description = "Public Money, Public Code - Eine Kampagne zur Veröffentlichung öffentlich finanzierter Software als Freie Software" + + [Languages.de.navigation.links] + about = "Über" + reasons = "Gründe" + resources = "Ressourcen" + spread = "Verbreiten" + contact = "Kontakt" + + # Start banner + [Languages.de.start] + slogan = "Public Money – Public Code" + subtitle = "Warum wird Software, das von Steuerzahlern finanziert wird, nicht als Freie Software veröffentlicht? Von Allen bezahlter Code sollte Allen zur Verfügung stehen." + buttonText = "Video anschauen" + + + # About section + [Languages.de.about] + headline = "Klingt komplziert? Nein, es ist super einfach!" + description = "VIDEO" + buttonText = "Mehr Vorteile" + + # Reasons section + [Languages.de.reasons] + headline = "Mehr Gründe zur Befreiung öffentlichen Codes" + + [[Languages.de.reasons.list]] + icon = "fa-eur" + title = "Steuerersparnis" + description = "Similar applications don't have to be programmed from scratch every time." + + [[Languages.de.reasons.list]] + icon = "fa-plus" + title = "Zusammenarbeit" + description = "Efforts on major projects can be joint to share expertise and costs." + + [[Languages.de.reasons.list]] + icon = "fa-users" + title = "Für die Allgemeinheit" + description = "Applications paid by the public should be available for everyone." + + [[Languages.de.reasons.list]] + icon = "fa-lightbulb-o" + title = "Innovation fördern" + description = "With transparent processes others don't have to reinvent the wheel." + + + # Portfolio modals + [Languages.de.resources.modal] + client = "Kunde" + date = "Datum" + category = "Kategorie" + buttonText = "Schließen" + + # Spread the word section + [Languages.de.spread] + headline = "Sag es weiter!" + promoText = "Obtain the latest stickers and flyers from FSFE" + promoButtonText = "Get promo material" + promoButtonLink = "https://fsfe.org/promo#pmpc" + shareText = "Tell your friends and followers about Public Code" + + # Contact section + [Languages.de.contact] + headline = "Let's Get In Touch!" + description = "Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!" + phone = "123-456-6789" + email = "feedback@startbootstrap.com" diff --git a/data/de/resources/1-PublicAdmin.yaml b/data/de/resources/1-PublicAdmin.yaml new file mode 100644 index 0000000..e6e4e10 --- /dev/null +++ b/data/de/resources/1-PublicAdmin.yaml @@ -0,0 +1,15 @@ +modalID: 1 +title: Leitfaden für die öffentliche Verwaltung +date: 2014-07-05 +img: 1.jpg +client: Start Bootstrap +clientLink: "#" +category: Webentwicklung +description: "

GERMAN Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse iaculis molestie nisl, dapibus viverra nisl vehicula eu. Phasellus a lorem vel felis dignissim varius. Aenean et porta velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean sodales augue eu lorem vestibulum luctus. Nunc bibendum sapien id ligula tempor, at tincidunt orci dignissim. Nam convallis, tortor nec bibendum ultrices, erat turpis vehicula enim, sit amet dictum leo urna non ante. Aenean fermentum finibus nibh, quis ultricies ipsum maximus vitae.

+ +

Vivamus massa mauris, blandit eu ante nec, pretium accumsan risus. Sed malesuada eu elit sit amet feugiat. Morbi a neque lorem. In rutrum ante nisl. Aliquam dapibus tempor libero eget elementum. Donec vitae odio sed ligula dictum malesuada. Fusce vitae facilisis turpis. Vivamus congue dolor lobortis, rutrum nibh at, pulvinar eros.

+ +

Donec tincidunt tortor ultrices, ullamcorper odio eget, ultricies tellus. Sed egestas dui orci, pulvinar sollicitudin nibh pulvinar quis. Vestibulum ultricies ligula nec ipsum egestas dictum. Nam vitae pretium arcu, vel ultricies quam. Quisque consequat lorem sed leo tempus ultricies. Sed luctus varius mauris ac volutpat. Aliquam quis consectetur orci, eget placerat mauris. Vivamus sollicitudin vulputate suscipit. Sed at maximus est, ac aliquet dolor. Proin porttitor nulla in consectetur mollis. Suspendisse varius eros at tellus dictum hendrerit. Etiam gravida, felis a tincidunt porttitor, sem augue scelerisque elit, vel sagittis nunc neque quis metus.

+ +

Donec egestas faucibus enim id sollicitudin. Morbi ullamcorper ipsum ut arcu ornare, eget tempus velit vehicula. Pellentesque id sem in nisi auctor ultrices at at tortor. In in ultricies augue. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam at massa eget quam fringilla ullamcorper. Vestibulum tincidunt egestas nunc, quis condimentum lectus sollicitudin eget. Maecenas rutrum viverra semper. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris sodales leo orci. Cras convallis ante diam, non ultrices odio varius quis. Phasellus libero tellus, tristique vitae ante eu, lacinia posuere libero. Nulla facilisi. Aliquam sapien nisi, mattis vel maximus sit amet, consectetur quis nunc.

" + diff --git a/data/de/resources/2-Public.yaml b/data/de/resources/2-Public.yaml new file mode 100644 index 0000000..6f3ece2 --- /dev/null +++ b/data/de/resources/2-Public.yaml @@ -0,0 +1,8 @@ +modalID: 2 +title: Leitfaden für die Öffentlichkeit +date: 2014-07-06 +img: 2.jpg +client: Start Bootstrap +clientLink: "#" +category: GERMAN +description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel enim aliquid dicta ullam in repellendus amet perspiciatis adipisci architecto obcaecati sit voluptas ipsam, deleniti neque placeat tenetur cum tempore velit. diff --git a/data/resources/3-Action.yaml b/data/de/resources/3-Action.yaml similarity index 100% rename from data/resources/3-Action.yaml rename to data/de/resources/3-Action.yaml diff --git a/data/resources/4-News.yaml b/data/de/resources/4-News.yaml similarity index 100% rename from data/resources/4-News.yaml rename to data/de/resources/4-News.yaml diff --git a/data/resources/5-FOI.yaml b/data/de/resources/5-FOI.yaml similarity index 100% rename from data/resources/5-FOI.yaml rename to data/de/resources/5-FOI.yaml diff --git a/data/resources/6-Press.yaml b/data/de/resources/6-Press.yaml similarity index 100% rename from data/resources/6-Press.yaml rename to data/de/resources/6-Press.yaml diff --git a/data/de/share/1-diaspora.yaml b/data/de/share/1-diaspora.yaml new file mode 100644 index 0000000..08d6368 --- /dev/null +++ b/data/de/share/1-diaspora.yaml @@ -0,0 +1,5 @@ +id: diaspora +name: Diaspora +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=diaspora&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/de/share/2-gnusocial.yaml b/data/de/share/2-gnusocial.yaml new file mode 100644 index 0000000..a56737e --- /dev/null +++ b/data/de/share/2-gnusocial.yaml @@ -0,0 +1,5 @@ +id: gnusocial +name: GNU Social +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=gnusocial&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/de/share/3-reddit.yaml b/data/de/share/3-reddit.yaml new file mode 100644 index 0000000..c61455b --- /dev/null +++ b/data/de/share/3-reddit.yaml @@ -0,0 +1,5 @@ +id: reddit +name: Reddit +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=reddit&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/de/share/4-twitter.yaml b/data/de/share/4-twitter.yaml new file mode 100644 index 0000000..8ad84e5 --- /dev/null +++ b/data/de/share/4-twitter.yaml @@ -0,0 +1,5 @@ +id: twitter +name: Twitter +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=twitter&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/de/share/5-gplus.yaml b/data/de/share/5-gplus.yaml new file mode 100644 index 0000000..4081a5a --- /dev/null +++ b/data/de/share/5-gplus.yaml @@ -0,0 +1,5 @@ +id: gplus +name: Google+ +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=gplus&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/de/share/6-facebook.yaml b/data/de/share/6-facebook.yaml new file mode 100644 index 0000000..674d9c9 --- /dev/null +++ b/data/de/share/6-facebook.yaml @@ -0,0 +1,5 @@ +id: facebook +name: Facebook +titleBefore: Auf +titleAfter: teilen +link: https://test.fsfe.org/cgi-bin/share.php?service=facebook&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/resources/1-PublicAdmin.yaml b/data/en/resources/1-PublicAdmin.yaml similarity index 100% rename from data/resources/1-PublicAdmin.yaml rename to data/en/resources/1-PublicAdmin.yaml diff --git a/data/resources/2-Public.yaml b/data/en/resources/2-Public.yaml similarity index 100% rename from data/resources/2-Public.yaml rename to data/en/resources/2-Public.yaml diff --git a/data/en/resources/3-Action.yaml b/data/en/resources/3-Action.yaml new file mode 100644 index 0000000..b0a2648 --- /dev/null +++ b/data/en/resources/3-Action.yaml @@ -0,0 +1,8 @@ +modalID: 3 +title: Take Action! +date: 2014-07-07 +img: 3.jpg +client: Start Bootstrap +clientLink: "#" +category: Web Development +description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel enim aliquid dicta ullam in repellendus amet perspiciatis adipisci architecto obcaecati sit voluptas ipsam, deleniti neque placeat tenetur cum tempore velit. diff --git a/data/en/resources/4-News.yaml b/data/en/resources/4-News.yaml new file mode 100644 index 0000000..6e6c021 --- /dev/null +++ b/data/en/resources/4-News.yaml @@ -0,0 +1,8 @@ +modalID: 4 +title: Latest News +date: 2014-07-09 +img: 4.jpg +client: +clientLink: "#" +category: Web Development +description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel enim aliquid dicta ullam in repellendus amet perspiciatis adipisci architecto obcaecati sit voluptas ipsam, deleniti neque placeat tenetur cum tempore velit. diff --git a/data/en/resources/5-FOI.yaml b/data/en/resources/5-FOI.yaml new file mode 100644 index 0000000..e955648 --- /dev/null +++ b/data/en/resources/5-FOI.yaml @@ -0,0 +1,8 @@ +modalID: 5 +title: Freedom of Information +date: 2014-07-08 +img: 5.jpg +client: +clientLink: "#" +category: Web Development +description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel enim aliquid dicta ullam in repellendus amet perspiciatis adipisci architecto obcaecati sit voluptas ipsam, deleniti neque placeat tenetur cum tempore velit. diff --git a/data/en/resources/6-Press.yaml b/data/en/resources/6-Press.yaml new file mode 100644 index 0000000..b4cdd2a --- /dev/null +++ b/data/en/resources/6-Press.yaml @@ -0,0 +1,8 @@ +modalID: 6 +title: Press information +date: 2014-07-10 +img: 6.jpg +client: Start +clientLink: "#" +category: Web Development +description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel enim aliquid dicta ullam in repellendus amet perspiciatis adipisci architecto obcaecati sit voluptas ipsam, deleniti neque placeat tenetur cum tempore velit. diff --git a/data/share/1-diaspora.yaml b/data/en/share/1-diaspora.yaml similarity index 77% rename from data/share/1-diaspora.yaml rename to data/en/share/1-diaspora.yaml index a73b708..a141f60 100644 --- a/data/share/1-diaspora.yaml +++ b/data/en/share/1-diaspora.yaml @@ -1,3 +1,5 @@ id: diaspora -text: Diaspora +name: Diaspora +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=diaspora&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/share/2-gnusocial.yaml b/data/en/share/2-gnusocial.yaml similarity index 77% rename from data/share/2-gnusocial.yaml rename to data/en/share/2-gnusocial.yaml index 90ef6ea..39c092a 100644 --- a/data/share/2-gnusocial.yaml +++ b/data/en/share/2-gnusocial.yaml @@ -1,3 +1,5 @@ id: gnusocial -text: GNU Social +name: GNU Social +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=gnusocial&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/share/3-reddit.yaml b/data/en/share/3-reddit.yaml similarity index 77% rename from data/share/3-reddit.yaml rename to data/en/share/3-reddit.yaml index cd7706e..7c3c28b 100644 --- a/data/share/3-reddit.yaml +++ b/data/en/share/3-reddit.yaml @@ -1,3 +1,5 @@ id: reddit -text: Reddit +name: Reddit +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=reddit&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/share/4-twitter.yaml b/data/en/share/4-twitter.yaml similarity index 77% rename from data/share/4-twitter.yaml rename to data/en/share/4-twitter.yaml index 4c014dd..2df6043 100644 --- a/data/share/4-twitter.yaml +++ b/data/en/share/4-twitter.yaml @@ -1,3 +1,5 @@ id: twitter -text: Twitter +name: Twitter +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=twitter&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/share/5-gplus.yaml b/data/en/share/5-gplus.yaml similarity index 77% rename from data/share/5-gplus.yaml rename to data/en/share/5-gplus.yaml index 7448568..efca808 100644 --- a/data/share/5-gplus.yaml +++ b/data/en/share/5-gplus.yaml @@ -1,3 +1,5 @@ id: gplus -text: Google+ +name: Google+ +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=gplus&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/data/share/6-facebook.yaml b/data/en/share/6-facebook.yaml similarity index 77% rename from data/share/6-facebook.yaml rename to data/en/share/6-facebook.yaml index 2f51786..61dedc6 100644 --- a/data/share/6-facebook.yaml +++ b/data/en/share/6-facebook.yaml @@ -1,3 +1,5 @@ id: facebook -text: Facebook +name: Facebook +titleBefore: Share on +titleAfter: link: https://test.fsfe.org/cgi-bin/share.php?service=facebook&ref=pmpc&url=https://publicmoneypubliccode.org&title=Public%20Money%3F%20Public%20Code!%20%23pmpc diff --git a/layouts/index.html b/layouts/index.html index 56feeb0..c61e92d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,5 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} {{ partial "head.html" . }} @@ -20,7 +21,7 @@ {{ partial "reasons.html" . }} {{ end }} - {{ if .Site.Data.resources }} + {{ if $data.resources }} {{ partial "resources.html" . }} {{ end }} @@ -32,7 +33,7 @@ {{ partial "contact.html" . }} {{ end }} - {{ if .Site.Data.resources }} + {{ if $data.resources }} {{ partial "modals.html" . }} {{ end }} diff --git a/layouts/partials/modals.html b/layouts/partials/modals.html index 8638209..b2bd580 100644 --- a/layouts/partials/modals.html +++ b/layouts/partials/modals.html @@ -1,5 +1,6 @@ {{ "" | safeHTML }} -{{ range .Site.Data.resources }} +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ range $data.resources }}