Skip to content

Commit

Permalink
Merge pull request #4 from paulopperman/active-projects
Browse files Browse the repository at this point in the history
add active projects page
  • Loading branch information
paulopperman authored May 6, 2017
2 parents 6a341e3 + f1e2acc commit 4528b7d
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .settings/org.eclipse.ltk.core.refactoring.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ url: "http://newportdataproject.org"
twitter_username: NewportData
github_username: NewportDataProject

collections:
projects:
output: true
permalink: /:collection/:name

# Build Settings
markdown: kramdown

Expand Down
15 changes: 15 additions & 0 deletions _layouts/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>

{% include head.html %}

<body>

<div class="container">
<h1>{{ page.name }}</h1>
<p>{{ page.description }}</p>
{{ content }}
</div>
</body>

</html>
9 changes: 9 additions & 0 deletions _projects/data_repository.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: project
title: Data Repository Project
name: Data Repository
description: We're building an open data repository to make datasets easy to access and use.
github_repo: /data
---

Access the github repository <a href="{{ page.github_repo | prepend: site.github_username | prepend: "https://github.com/" }}">here.</a>
7 changes: 7 additions & 0 deletions _projects/mapping_project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: project
title: Mapping Project
name: Mapping Project
description: Improving the Open Street Maps database for Aquidneck Island
---

22 changes: 22 additions & 0 deletions projects/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
title: Active Projects
---
<h1>Active Projects</h1>

<table>
<tr>
<th style="width:30%">Project Name</th>
<th style="width:70%">Description</th>
</tr>

{% for project in site.projects %}

<tr>
<td><a href="{{ project.url | prepend: site.baseurl }}">{{project.title}}</a></td>
<td>{{ project.description }}</td>
</tr>

{% endfor %}

</table>

0 comments on commit 4528b7d

Please sign in to comment.