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

draft:Feature/categories pages #41

Draft
wants to merge 5 commits into
base: newDisplay
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ plugins:
collections:
projects_lfe:
output: true
permalink: /projects/lfe/:path/
permalink: /projects-lfe/:path/
projects_rte:
output: true
permalink: /projects/rte/:path/
permalink: /projects-rte/:path/
projects_contribution:
output: true
permalink: /projects/contribution/:path/
permalink: /projects-contribution/:path/

include:
- _pages
Expand Down
13 changes: 11 additions & 2 deletions _includes/documents-collection.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{% assign entries = include.entries | default: site[include.collection] | where_exp: "post", "post.hidden != true" %}
{% assign entries_short = include.entries | default: site[include.collection] | where_exp: "post", "post.hidden != true"
| sample: 3 %} {% assign entries_all = include.entries | default: site[include.collection] | where_exp: "post",
"post.hidden != true"%}

<div class="entries-grid-header">
<hr class="header-line" />
<h1>{{include.category-title}}</h1>
<hr class="header-line" />
</div>
<div class="entries-grid-items">
{%- for post in entries -%} {% include archive-single.html type=include.type %} {%- endfor -%}
{% if include.url and entries_all.size > entries_short.size %} {%- for post in entries_short -%} {% include
archive-single.html type=include.type %} {%- endfor -%} {% else %} {%- for post in entries_all -%} {% include
archive-single.html type=include.type %} {%- endfor -%} {% endif %}
</div>
{% if include.url and entries_all.size > entries_short.size %}
<a class="see-more" href="{{ include.url | relative_url }}" rel="permalink" title="Voir tous les projets"
>Voir tous les projets</a
>
{% endif %}
29 changes: 9 additions & 20 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} <a href="{{ site.copyright_url | default: site.url }}">{{ site.copyright | default: site.title }}</a></div>

<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
{% endif %}

{% if site.footer.links %}
{% for link in site.footer.links %}
{% if link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true" style="color:white;"></i> {{ link.label }}</a></li>
{% endif %}
{% endfor %}
{% endif %}

{% unless site.atom_feed.hide %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
{% endunless %}
</ul>
<a href="https://www.rte-france.com/" rel="permalink">RTE-France</a>
</div>
<div class="page__footer-copyright">
&copy; {{ site.time | date: '%Y' }}
<a href="{{ site.copyright_url | default: site.url }}">{{ site.copyright | default: site.title }}</a>
</div>

<div class="page__footer-copyright">Website powered by <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://mademistakes.com/work/jekyll-themes/minimal-mistakes/" rel="nofollow">Minimal Mistakes</a>.</div>
<div class="page__footer-copyright">
Website powered by <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> &amp;
<a href="https://mademistakes.com/work/jekyll-themes/minimal-mistakes/" rel="nofollow">Minimal Mistakes</a>.
</div>
6 changes: 3 additions & 3 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

<div class="entries-grid">
{% include documents-collection.html collection="projects_lfe" type="grid" category-title="Linux Foundation Energy
projects" %}
projects" url="projects-lfe" %}
</div>
<div class="entries-grid">
{% include documents-collection.html collection="projects_rte" sort_by=page.sort_by sort_order=page.sort_order
type="grid" category-title="RTE-France Core projects" %}
type="grid" url="projects-rte" category-title="RTE-France Core projects" %}
</div>
<div class="entries-grid">
{% include documents-collection.html collection="projects_contribution" sort_by=page.sort_by
sort_order=page.sort_order type="grid" category-title="RTE-France contributes in" %}
sort_order=page.sort_order url="projects-contribution" type="grid" category-title="RTE-France contributes in" %}
</div>
</div>
181 changes: 88 additions & 93 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,102 +2,97 @@
layout: default
---

{% assign breadcrumbs_enabled = site.breadcrumbs %}
{% if page.breadcrumbs != null %}
{% assign breadcrumbs_enabled = page.breadcrumbs %}
{% endif %}
{% if page.url != "/" and breadcrumbs_enabled %}
{% unless paginator %}
{% include breadcrumbs.html %}
{% endunless %}
{% endif %}

<div id="main" role="main">
{% assign breadcrumbs_enabled = site.breadcrumbs %} {% if page.breadcrumbs != null %} {% assign breadcrumbs_enabled =
page.breadcrumbs %} {% endif %} {% if page.url != "/" and breadcrumbs_enabled %} {% unless paginator %} {% include
breadcrumbs.html %} {% endunless %} {% endif %}

<article {% if page.locale %}
lang="{{ page.locale }}" {% endif %}>
{% if page.header.image %}
<div style="margin-top: 2em; margin-bottom: 2em">
<img src="{{ page.header.image }}"
style="width: 80%; display: block; margin: auto">
</div>
{% endif %}
{% if page.title %}
<meta itemprop="headline"
content="{{ page.title | replace: '|', '&#124;' | markdownify | strip_html | strip_newlines | escape_once }}">
{% endif %}
{% if page.excerpt %}
<meta itemprop="description"
content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">
{% endif %}

<div class="page__inner-wrap">

{% if page.show-title -%}
<header>
<h1 id="page-title" class="page__title" itemprop="headline">
<a href="{{ page.url | absolute_url }}" itemprop="url">{{ page.title | markdownify | remove: "<p>" |
remove: "</p>" }}</a>
</h1>
{% include page__meta.html %}
</header>
{%- endif %}
<article {% if page.locale %} lang="{{ page.locale }}" {% endif %}>
{% if page.title %}
<meta
itemprop="headline"
content="{{ page.title | replace: '|', '&#124;' | markdownify | strip_html | strip_newlines | escape_once }}"
/>
{% endif %} {% if page.excerpt %}
<meta
itemprop="description"
content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}"
/>
{% endif %}

<section class="page__content" itemprop="text">
<!-- buttons -->
<div style="margin-bottom: 20px">
<div style="display: block; margin: auto">
{% if page.license %}
<div style="display:inline-block;position:relative;">
<div><a href="{{ page.license-url }}" class="btn btn--primary"><i
class="fa-solid fa-file-contract"
style="margin-right:10px;"></i>{{
page.license }}</a></div>
</div>
{% endif %}
{% if page.github %}
<div style="display:inline-block;position:relative;">
<div><a href="{{ page.github }}" class="btn btn--primary"><i class="fa-brands fa-github"
style="margin-right:10px;"></i>GitHub</a>
</div>
</div>
{% endif %}
{% if page.community %}
<div style="display:inline-block;position:relative;">
<div><a href="{{ page.community }}" class="btn btn--primary"><i
class="fa-solid fa-user-group"
style="margin-right:10px;"></i>Community</a>
</div>
</div>
{% endif %}
{% if page.website %}
<div style="display:inline-block;position:relative;">
<div><a href="{{ page.website }}" class="btn btn--primary"><i
class="fa-solid fa-arrow-up-right-from-square"
style="margin-right:10px;"></i>Website</a>
</div>
</div>
{% endif %}
{% if page.documentation %}
<div style="display:inline-block;position:relative;">
<div><a href="{{ page.documentation }}" class="btn btn--primary"><i class="fa-solid fa-book"
style="margin-right:10px;"></i>Documentation</a>
</div>
</div>
{% endif %}
</div>
</div>
{{ content }}
</section>

<footer class="page__meta">
{% if site.data.ui-text[site.locale].meta_label %}
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %}
{% include page__taxonomy.html %}
</footer>
<div class="page__inner-wrap">
<header class="page__title">
<div class="page__title-text">
{% include page__meta.html %} {% if page.header.image %}
<div class="page__title-logo">
<img src="{{ page.header.image }}" />
</div>
{% endif %} {% if page.header.title %}
<h1 id="page-title" itemprop="headline">
{{ page.title | markdownify | remove: "
<p>" | remove: "</p>
" }}
</h1>
<hr class="page__title-line" />
{% endif %}
</div>
</header>

{% include post_pagination.html %}
<section class="page__content" itemprop="text">
<!-- buttons -->
<div style="margin-bottom: 20px">
<div style="display: block; margin: auto">
{% if page.license %}
<div style="display: inline-block; position: relative">
<div>
<a href="{{ page.license-url }}" class="btn btn--primary"
><i class="fa-solid fa-file-contract" style="margin-right: 10px"></i>{{ page.license }}</a
>
</div>
</div>
{% endif %} {% if page.github %}
<div style="display: inline-block; position: relative">
<div>
<a href="{{ page.github }}" class="btn btn--primary"
><i class="fa-brands fa-github" style="margin-right: 10px"></i>GitHub</a
>
</div>
</div>
{% endif %} {% if page.community %}
<div style="display: inline-block; position: relative">
<div>
<a href="{{ page.community }}" class="btn btn--primary"
><i class="fa-solid fa-user-group" style="margin-right: 10px"></i>Community</a
>
</div>
</div>
{% endif %} {% if page.website %}
<div style="display: inline-block; position: relative">
<div>
<a href="{{ page.website }}" class="btn btn--primary"
><i class="fa-solid fa-arrow-up-right-from-square" style="margin-right: 10px"></i>Website</a
>
</div>
</div>
{% endif %} {% if page.documentation %}
<div style="display: inline-block; position: relative">
<div>
<a href="{{ page.documentation }}" class="btn btn--primary"
><i class="fa-solid fa-book" style="margin-right: 10px"></i>Documentation</a
>
</div>
</div>
{% endif %}
</div>
</div>
</article>
{{ content }}
</section>

<footer class="page__meta">
{% if site.data.ui-text[site.locale].meta_label %}
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
{% endif %} {% include page__taxonomy.html %}
</footer>
</div>
</article>
</div>
12 changes: 12 additions & 0 deletions _layouts/projects-contribution.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---

<div id="main" role="main">
{{ content }}

<div class="entries-grid">
{% include documents-collection.html collection="projects_contribution" sort_by=page.sort_by
sort_order=page.sort_order type="grid" category-title="RTE-France contributes in"%}
</div>
</div>
12 changes: 12 additions & 0 deletions _layouts/projects-lfe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---

<div id="main" role="main">
{{ content }}

<div class="entries-grid">
{% include documents-collection.html collection="projects_lfe" type="grid" category-title="Linux Foundation Energy
projects" %}
</div>
</div>
12 changes: 12 additions & 0 deletions _layouts/projects-rte.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---

<div id="main" role="main">
{{ content }}

<div class="entries-grid">
{% include documents-collection.html collection="projects_rte" sort_by=page.sort_by sort_order=page.sort_order
type="grid" category-title="RTE-France Core projects" %}
</div>
</div>
8 changes: 8 additions & 0 deletions _pages/projects-contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Projects contibution"
permalink: /projects-contribution/
layout: projects-contribution
breadcrumbs: true
---

{% include breadcrumbs.html %}
7 changes: 7 additions & 0 deletions _pages/projects-lfe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Projects lfe"
permalink: /projects-lfe/
layout: projects-lfe
---

{% include breadcrumbs.html %}
7 changes: 7 additions & 0 deletions _pages/projects-rte.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Projects rte"
permalink: /projects-rte/
layout: projects-rte
---

{% include breadcrumbs.html %}
17 changes: 9 additions & 8 deletions _projects_contribution/openstef.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "OpenSTEF"
show-title: false
layout: project
excerpt: OpenSTEF is a Python package designed for generating short-term forecasts in the energy sector.
breadcrumbs: true
header:
image: /assets/images/openstef/openstef.svg
teaser: assets/images/openstef/openstef.svg
Expand All @@ -12,19 +13,19 @@ license: MPL 2.0
license-url: https://github.com/OpenSTEF/.github/blob/main/LICENSE
documentation: https://openstef.github.io/openstef/index.html
community: https://slack.lfenergy.org/
tags: [ LFEnergy, MPL2.0, contribution ]
tags: [LFEnergy, MPL2.0, contribution]
---

The OpenSTEF project provides a valuable portfolio of automated, Open Source machine learning pipelines that provide
accurate short-term load forecasting for energy grids.
accurate short-term load forecasting for energy grids.

Developed by energy experts and constantly refined as part of an open industry development process, the OpenSTEF
forecasting pipelines combine inputs of measured historical grid data, together with relevant external predictors such
as weather and market pricing. Users can forecast the future load on any grid, with the ability to look at energy
consumption, (renewable) generation, or a combination of both.
consumption, (renewable) generation, or a combination of both.

OpenSTEF outputs forecasts via either an API or (expert) graphical user interface. The entire technology stack is built
on Open Source technology and open standards, and its microservice architecture is optimized for cloud-native
deployment.
RTE contributes to the development of OpenSTEF.
deployment.

RTE contributes to the development of OpenSTEF.
Loading