aboutsummaryrefslogtreecommitdiffstats
path: root/templates/show_post.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-12 12:43:03 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-12 12:43:03 +0100
commita77f6e9d27f98bc36d0911ce58c109f4a18bd835 (patch)
treed88d91a956e8107871d3bc8e1b8bf994579b90d3 /templates/show_post.html
parent35112f2357d6510a889c8e20604b11a2c0acf342 (diff)
downloadrocket-blog-a77f6e9d27f98bc36d0911ce58c109f4a18bd835.tar.gz
rocket-blog-a77f6e9d27f98bc36d0911ce58c109f4a18bd835.tar.bz2
rocket-blog-a77f6e9d27f98bc36d0911ce58c109f4a18bd835.zip
Move post actions to partial.
Diffstat (limited to 'templates/show_post.html')
-rw-r--r--templates/show_post.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/show_post.html b/templates/show_post.html
index 5a7d806..31c2ca3 100644
--- a/templates/show_post.html
+++ b/templates/show_post.html
@@ -5,15 +5,15 @@
</head>
<body>
<article class="post-teaser">
+ {{# post. }}
<header>
- <h1>{{ post.title }}</h1>
- <div class="post-actions">
- Edit | Publish | Delete
- </div>
+ <h1>{{ .title }}</h1>
+ {{> post_actions.html }}
</header>
<section class="teaser">
- {{ post.body }}
+ {{ .body }}
</section>
+ {{/ post }}
</article>
</body>
</html>