changed the replace to slugify method
parent
1435bac8ab
commit
debcb8bb57
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% for post in posts %}
|
{% 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>
|
<article>
|
||||||
<span><strong>{ image: </strong></span>
|
<span><strong>{ image: </strong></span>
|
||||||
<figure>
|
<figure>
|
||||||
|
|
Loading…
Reference in New Issue