add projects page and link (empty for now)

This commit is contained in:
Gered 2013-06-05 19:41:25 -04:00
parent c30de1630e
commit d7e6adcfa7
3 changed files with 17 additions and 0 deletions

View file

@ -9,6 +9,11 @@
(layout/render
"about.html" {:html-title (->html-title ["About"])}))
(defn projects-page []
(layout/render
"projects.html" {:html-title (->html-title ["Projects"])}))
(defroutes home-routes
(GET "/about" [] (about-page))
(GET "/projects" [] (projects-page))
(GET "/toslug" [text] (resp/json {:slug (if text (->slug text))})))

View file

@ -41,6 +41,7 @@
<ul class="nav">
<li><a href="{{context}}/about">About</a></li>
<li><a href="{{context}}/archive">Archive</a></li>
<li><a href="{{context}}/projects">Projects</a></li>
</ul>
<ul class="nav pull-right">
{% if user-id %}

View file

@ -0,0 +1,11 @@
{% extends "blarg/views/templates/base.html" %}
{% block content %}
<div class="page-header">
<h2>Projects</h2>
</div>
<p>Soon ... </p>
{% endblock %}