Skip to content

Commit b2456ca

Browse files
committed
Add comments.
1 parent 77958b6 commit b2456ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/project-ideas.html

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
<p class="text-muted">This is the project idea list for the <a href="/gsoc-2019">Google Summer of Code 2019</a> program. We have a mix of projects that are meant to be installed widely (such as plugins for other software) and projects that are more focused on improving user experience for users of Creative Commons licenses. Regardless of scope, these projects all have a broad and positive community impact.</p>
66
<a name="ideas-top"></a>
77
<hr/>
8+
<!-- We display all ideas by default. -->
89
{% set ideas = site.query('/gsoc-2019/project-ideas/project-ideas-list').include_undiscoverable(true) %}
10+
<!-- The following code filters the ideas to display based on the current URL. These mappings are defined in the "databags" folder.
11+
Jinja does not support changing values of variables inside loops, so we have to use namespace objects.
12+
See "Scoping Behavior" here: http://jinja.pocoo.org/docs/2.10/templates/#assignments -->
913
{% set ns = namespace(field=None, value=None) %}
1014
{% for slug, data in bag('project-filters').iteritems() %}
1115
{% if this._slug == slug %}

0 commit comments

Comments
 (0)