add projects page and link (empty for now)
This commit is contained in:
parent
c30de1630e
commit
d7e6adcfa7
|
@ -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))})))
|
||||
|
|
|
@ -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 %}
|
||||
|
|
11
src/blarg/views/templates/projects.html
Normal file
11
src/blarg/views/templates/projects.html
Normal 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 %}
|
Reference in a new issue