changed the replace to slugify method
parent
1435bac8ab
commit
debcb8bb57
|
@ -6,7 +6,7 @@
|
|||
|
||||
{% block content %}
|
||||
{% for post in posts %}
|
||||
<a class="article" href="/posts/{{ post.title | split(pat=' ') | join(sep='-') }}-{{ post.id }}">
|
||||
<a class="article" href="/posts/{{ post.title | slugify }}-{{ post.id }}">
|
||||
<article>
|
||||
<span><strong>{ image: </strong></span>
|
||||
<figure>
|
||||
|
|
Loading…
Reference in New Issue