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

Restructure almost the whole community portal and add content to some pages #21

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GEM
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
ffi (1.9.18)
ffi (1.9.18-x64-mingw32)
forwardable-extended (2.6.0)
hash-joiner (0.0.7)
safe_yaml
Expand Down Expand Up @@ -52,9 +53,15 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
tzinfo (1.2.4)
thread_safe (~> 0.1)
tzinfo-data (1.2017.3)
tzinfo (>= 1.0.0)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
hash-joiner
Expand All @@ -67,4 +74,4 @@ DEPENDENCIES
tzinfo-data

BUNDLED WITH
1.16.0
1.16.1
9 changes: 7 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ jekyll_get:
- data: angels
cache: true
json: "https://forum.fairphone.com/t/angel-the-fairphone-angels-program-local-support-by-community-members/33058.json"
- data: event
- data: contribute
cache: true
json: "https://forum.fairphone.com/t/a-little-guide-to-the-fairphone-community-how-to-become-part-of-the-movement-and-contribute/26177.json"
- data: efct
cache: true
json: "https://forum.fairphone.com/t/star-save-the-date-european-fairphoners-community-trip-to-amsterdam-2018-13-8-19-8-2018/32940.json"

- data: design
cache: true
json: "https://forum.fairphone.com/t/fairphone-community-design/35920.json"
- data: synapse
cache: true
json: "https://forum.fairphone.com/t/synapse-inspired-by-fairphone-movement/31607.json"
Expand Down
Empty file added _i18n/de/apks.md
Empty file.
Empty file added _i18n/de/contribute.md
Empty file.
File renamed without changes.
Empty file added _i18n/de/design.md
Empty file.
Empty file added _i18n/de/efct.md
Empty file.
Empty file added _i18n/de/event-guide.md
Empty file.
Empty file added _i18n/de/events.md
Empty file.
Empty file added _i18n/de/flashable-zips.md
Empty file.
Empty file added _i18n/de/hardware.md
Empty file.
Empty file added _i18n/de/local-events.md
Empty file.
Empty file added _i18n/de/online.md
Empty file.
Empty file added _i18n/de/software.md
Empty file.
32 changes: 26 additions & 6 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,32 @@ pages:
about:
title: "About"
angels:
title: "Fairphone Angels"
community-maps:
title: "Community Maps"
title: "The Angels Program"
contribute:
title: "Contribute"
design:
title: "Design Guidelines"
events:
title: "Community Events"
local-events:
title: "Local Meetups and Events"
event-materials:
title: "Community event materials"
installation:
title: "Installation"
title: "Useful Event Materials"
event-guide:
title: "Fairphone Meetup Guide"
efct:
title: "European Fairphoners Community Meetup"
hardware:
title: "DIY & Repair"
online:
title: "Online Communities"
software:
title: "Custom Roms & other Software"
custom-roms:
title: "Custom Roms"
flashable-zips:
title: "Flashable ZIPs"
apks:
title: "Community Apps"
synapse:
title: "Synapse"
4 changes: 1 addition & 3 deletions _i18n/en/angels.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Fairphone Angels are community members, who offer technical support.

See [Local technical support by community members +mailing lists: project description](https://forum.fairphone.com/t/local-technical-support-by-community-members-mailing-lists-project-description/26193/5) for more information.
Fairphone Angels are active volunteers in your area that offer local technical support.
Empty file added _i18n/en/apks.md
Empty file.
1 change: 1 addition & 0 deletions _i18n/en/contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Become part of the movement by helping out with the online and offline projects.
File renamed without changes.
1 change: 1 addition & 0 deletions _i18n/en/design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Fairphone Community Design helps preserve a common visual identity across all community activities.
Empty file added _i18n/en/efct.md
Empty file.
Empty file added _i18n/en/event-guide.md
Empty file.
1 change: 1 addition & 0 deletions _i18n/en/events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Community events are the perfect way to get in touch with Fairphoners and talk about fair electronics.
Empty file added _i18n/en/flashable-zips.md
Empty file.
Empty file added _i18n/en/hardware.md
Empty file.
Empty file added _i18n/en/local-events.md
Empty file.
Empty file added _i18n/en/online.md
Empty file.
Empty file added _i18n/en/software.md
Empty file.
File renamed without changes.
19 changes: 19 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,23 @@ <h1 class="post-title">{% translate page.title %}</h1>
{% endfor %}
</div>
{% endif %}

{% if page.subpages %}
<ul class="page-list">
{% for pageobj in site.pages %}
{% if page.subpages contains pageobj.path %}
<li class="page-list-item">
<h2>
<a class="page-link" href="{{ page.url | relative_url }}">
{% translate pageobj.title %}
</a>
</h2>
<div class="page-content">
{{ pageobj.content }}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</article>
34 changes: 34 additions & 0 deletions _layouts/subpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: default
---
<article class="post">

<header class="post-header">
<h1 class="post-title">{% translate subpage.title %}</h1>
</header>

<div class="post-content">
{{ content }}
</div>

{% if subpage.further_reading %}
<div class="supplemental-teaser">
{% translate global.further_reading %}:

{% assign feed_key = site.data[subpage.further_reading] %}
{% assign first_post = feed_key.post_stream.posts[0] %}
<blockquote>
{{ first_post.cooked }}
</blockquote>
&ndash;
{% for links in site.jekyll_get %}
{% if links.data == subpage.further_reading %}
{% assign forum_link = links.json %}
<a href="{{ forum_link }}" target="_blank">
{% translate global.source %}
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</article>
14 changes: 0 additions & 14 deletions contribute/community-maps.md

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions pages/contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: pages.contribute.title
further_reading: contribute
---

{% translate_file contribute.md %}
7 changes: 7 additions & 0 deletions pages/design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: pages.design.title
further_reading: design
---

{% translate_file design.md %}
7 changes: 7 additions & 0 deletions pages/events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: pages.events.title
subpages: [pages/events/local-events.md, pages/events/event-materials.md, pages/events/event-guide.md, pages/events/efct.md]
---

{% translate_file events.md %}
6 changes: 6 additions & 0 deletions pages/events/efct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.efct.title
---

{% translate_file efct.md %}
6 changes: 6 additions & 0 deletions pages/events/event-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.event-guide.title
---

{% translate_file event-guide.md %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: page
layout: subpage
title: pages.event-materials.title
further_reading: event
---
Expand Down
6 changes: 6 additions & 0 deletions pages/events/local-events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.local-events.title
---

{% translate_file local-events.md %}
6 changes: 6 additions & 0 deletions pages/hardware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: page
title: pages.hardware.title
---

{% translate_file hardware.md %}
6 changes: 6 additions & 0 deletions pages/online.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: page
title: pages.online.title
---

{% translate_file online.md %}
6 changes: 6 additions & 0 deletions pages/software.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: page
title: pages.software.title
---

{% translate_file software.md %}
6 changes: 6 additions & 0 deletions pages/software/apks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.apks.title
---

{% translate_file apks.md %}
6 changes: 6 additions & 0 deletions pages/software/custom-roms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.custom-roms.title
---

{% translate_file custom-roms.md %}
6 changes: 6 additions & 0 deletions pages/software/flashable-zips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: subpage
title: pages.flashable-zips.title
---

{% translate_file flashable-zips.md %}
File renamed without changes.
6 changes: 0 additions & 6 deletions software/installation.md

This file was deleted.