changed the route from posts to post

pull/1/head
kirbylife 2019-11-18 02:15:46 -06:00
parent cbc88b34b8
commit d8a4c2b03e
3 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ fn show_post(title: String) -> Template {
context.insert("title", &title);
context.insert("post", &post);
Template::render("posts", context)
Template::render("post", context)
}
fn main() {

View File

@ -6,7 +6,7 @@
{% block content %}
{% for post in posts %}
<a class="article" href="/posts/{{ post.title | slugify }}-{{ post.id }}">
<a class="article" href="/post/{{ post.title | slugify }}-{{ post.id }}">
<article>
<span><strong>{ image: </strong></span>
<figure>