diff --git a/_includes/gsoc_project.ext b/_includes/gsoc_project.ext index 8cd2bdeb..1cdd386b 100644 --- a/_includes/gsoc_project.ext +++ b/_includes/gsoc_project.ext @@ -1,43 +1,22 @@ -{% comment %} -Liquid template to display GSoC proposals for a given project. To be included in a Markdown page. -Project used for proposal filtering must be defined in the 'project' attribute of the page which includes this template. -Each proposal much have an attribute 'project' in its front-matter than can be a single value or a list. -Project names are not case sensitive. -{% endcomment %} - {% assign url_tokens = page.url | split: '/' %} {% assign year_position = url_tokens.size | minus: 2 %} {% assign year = url_tokens[year_position] %} -{:.table .table-hover .table-striped} - -{% comment %} -Use the project name as the page title if none has been specified (they are typically identical) -{% endcomment %} -{% capture current_title %}{% if page.title contains "Project_" %}{{ page.project }}{% else %}{{ page.title }}{% endif %}{% endcapture %} - -# GSoC {{ year }} Projects Related To {{ current_title }} - - +# GSoC {{ year }} Projects {{ page.description }} ## Project Proposals -{% for proposal in site.gsocproposals %} -{% assign url_tokens = proposal.url | split: '/' %} -{% assign year_position = url_tokens.size | minus: 2 %} -{% assign proposal_year = url_tokens[year_position] %} -{% if proposal_year == year %} -{% for project in proposal.project %} -{% capture u_proposal_project %}{{ project | upcase }}{% endcapture %} -{% capture u_project %}{{ page.project | upcase }}{% endcapture %} -{% if u_proposal_project == u_project %} -* [ {{ proposal.title }} ]( {{ proposal.url }} ) -{% endif %} -{% endfor %} -{% endif %} +{% for project in site.gsocprojects %} + {% assign url_tokens = project.url | split: '/' %} + {% assign year_position = url_tokens.size | minus: 2 %} + {% assign project_year = url_tokens[year_position] %} + + {% if project_year == year %} +
+

{{ project.title }}

+
{{ project.content }}
+
+ {% endif %} {% endfor %} -