Add dynamic project list, added test project
This commit is contained in:
parent
9019b47c01
commit
9e898dfcf2
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
layout: "contentpage"
|
|
||||||
title: "Projects"
|
|
||||||
icon: "wrench"
|
|
||||||
order: 2
|
|
||||||
---
|
|
||||||
Test
|
|
10
src/documents/projects.html.ejs
Normal file
10
src/documents/projects.html.ejs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
layout: "contentpage"
|
||||||
|
title: "Projects"
|
||||||
|
icon: "wrench"
|
||||||
|
order: 2
|
||||||
|
---
|
||||||
|
<% var projects = getCollection("projects").toJSON() %>
|
||||||
|
<% projects.forEach(function(project){ %>
|
||||||
|
<a href="<%- project.url %>"><%= project.title %></a>
|
||||||
|
<% }) %>
|
4
src/documents/projects/test.html
Normal file
4
src/documents/projects/test.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Test Project"
|
||||||
|
---
|
||||||
|
Test2
|
Loading…
x
Reference in New Issue
Block a user