summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--templates/layouts/_default.html6
2 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2f0bbbf..641e853 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,6 @@
VERSION=0.0.1
DOCKER_IMAGE=a73xsh/home:${VERSION}
-.PHONY: fly
-fly:
- cd proxy && fly deploy
-
.PHONY: serve
serve:
go run ./cmd/home
diff --git a/templates/layouts/_default.html b/templates/layouts/_default.html
index 7679382..27cd916 100644
--- a/templates/layouts/_default.html
+++ b/templates/layouts/_default.html
@@ -61,7 +61,11 @@
<nav>
<ul>
<li><a href="/">home</a></li>
- <li><a href="/posts">posts</a></li>
+ {{ range $key, $value := .Collections }}
+ {{if ne $key "all"}}
+ <li><a href="/{{$key}}">{{$key}}</a></li>
+ {{end}}
+ {{end}}
</ul>
</nav>
{{ template "content" . }}