Skip to content
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
18 changes: 17 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
name: Git Developer Pages
permalink: /rev_news/:year/:month/:day/:title/
plugins:
- jekyll-redirect-from
- jekyll-redirect-from

defaults:
- { scope: { path: "links/dev" } , values: { nb: "Git Development" , permalink: "/:basename/"} }
- { scope: { path: "links/mentoring/common" } , values: { nb: "Mentoring" , permalink: "/:basename/"} }
- { scope: { path: "links/mentoring/soc" } , values: { nb: "Mentoring-SoC" , permalink: "/:basename/"} }
- { scope: { path: "links/mentoring/outreachy" } , values: { nb: "Mentoring-Outreachy", permalink: "/:basename/"} }
- { scope: { path: "rev_news" } , values: { nb: "Git Rev News" } }

# this is used to display links in the right categories order
# be sure to match default category names defined in site.defaults
nb-order:
- "Git Development"
- "Git Rev News"
- "Mentoring"
- "Mentoring-SoC"
- "Mentoring-Outreachy"
28 changes: 19 additions & 9 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<div id="navbar" class="navbar">
<ul>
<li><a href="/">Home</a>
{% for node in site.pages reversed %}
{% if node.navbar != false and node.title %}
<li><a href="{{node.url}}">{{node.title}}</a>
{% endif %}
{% endfor %}
</ul>
</div>
<a href="{{ '/' | relative_url }}">Home</a>

{% assign nb-groups = site.pages | group_by:"nb" %}

{% comment %} We loop site.nb-order to sort categories in a defined order {% endcomment %}
{% for nb-value in site.nb-order %}
{% assign group = nb-groups | where: "name", nb-value | first %}
{% assign nb-pages = group.items | sort: "order", "last" %}

<h3>{{ nb-value }}</h3>
<ul>
{% for item in nb-pages %}
{% if item.navbar != false and item.title %}
<li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions rev_news/archive.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Git Rev News Archive
order: 3
---

# Archive
Expand Down
3 changes: 2 additions & 1 deletion rev_news/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Git Rev News
title: Git Rev News Latest edition
order: 2
---

# Latest edition
Expand Down
1 change: 1 addition & 0 deletions rev_news/news_sources.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Git Rev News Sources
order: 4
---

# Sources
Expand Down
1 change: 1 addition & 0 deletions rev_news/rev_news.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: About Git Rev News
order: 1
---

# About Git Rev News
Expand Down