1

this works fine:

{% post_url 2017-06-14-Home %}

but this doesn't:

{% assign mypost = '2017-06-14-Home' %}
{% post_url {{mypost}} %}

Why? This seems to be pretty straightforward...

EDIT

OK, so finally I ported my site to Pelican. Now it works just fine.

tnorgd
  • 1,580
  • 2
  • 14
  • 24

1 Answers1

0

That is weird. I think it is because in, {% post_url 2017-06-14-Home %} '2017-06-14-Home' is not a string. It seems like it should be but it's probably actually an object.

Not sure if this will work but try the following:

{% assign mypost = 2017-06-14-Home %}
{% post_url mypost %}
GeorgeButter
  • 2,521
  • 1
  • 29
  • 47