2 posts with same name -> latest one will be shown twice
ciapecki opened this issue · comments
links to posts do not include date. It causes ambiguity if we have 2 posts with same name but different dates:
$ ls _posts/
2020-10-07-first-post.md
2020-10-08-first-post.md
On the index page you can see correctly 2 posts with distinct values (img, date and content).
But the generated links do not include dates, so in both cases we end up with same link <a href="/first-post/">
, which causes that only the latter post will be shown even if clicked on the one with previous date.
For others looking at this issue, when I looked further it seems you can adjust permalink in _config.yml
:
$ cat _config.yml |grep permalink
permalink: ':year-:month-:day-:title/'
and the links will be created as in this pattern