Skip to content

Commit 086a7ca

Browse files
committed
Moved project-ideas-page URL to less cumbersome project-ideas
1 parent e83ec0e commit 086a7ca

File tree

18 files changed

+19
-19
lines changed

18 files changed

+19
-19
lines changed

content/project-ideas-page/project-ideas/contents.lr

-3
This file was deleted.

content/project-ideas-page/contents.lr renamed to content/project-ideas/contents.lr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_model: project-ideas-page
1+
_model: project-ideas
22
---
33
title: GSoC 2019 Project Ideas
44
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: project-ideas-list
2+
---
3+
_hidden: yes

models/project-ideas-list.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[model]
2+
name = Project Ideas
3+
label = {{ this.title }}
4+
hidden = yes
5+
protected = yes
6+
7+
[children]
8+
model = project-idea
9+
order_by = title

models/project-ideas-page.ini

-9
This file was deleted.

models/project-ideas.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[model]
2-
name = Project Ideas
2+
name = Project Ideas Page
33
label = {{ this.title }}
44
hidden = yes
55
protected = yes
66

7-
[children]
8-
model = project-idea
9-
order_by = title
7+
[fields.title]
8+
label = Title
9+
type = string

templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<li class="nav-item{% if this._path == '/' %} active{% endif
2424
%}"><a class="nav-link" href="{{ '/'|url }}">Home</a></li>
2525
{% for href, title in [
26-
['/project-ideas-page', 'GSoC Project Ideas'],
26+
['/project-ideas', 'GSoC Project Ideas'],
2727
] %}
2828
<li class="nav-item{% if this.is_child_of(href) %} active{% endif
2929
%}"><a class="nav-link"

templates/project-ideas-page.html renamed to templates/project-ideas.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block body %}
55
<a name="ideas-top"><h1>Google Summer of Code 2019 Project Ideas</h1></a>
6-
{% set ideas = site.query('/project-ideas-page/project-ideas').include_undiscoverable(true).all() %}
6+
{% set ideas = site.query('/project-ideas/project-ideas-list').include_undiscoverable(true).all() %}
77
<div class="mt-4">
88
<div>
99
<ul class="list-unstyled m3">

0 commit comments

Comments
 (0)