I have a set of MD files. They have ‘publish date’ and ‘modify date’.
I try to hide modify date if publish date is same as modify date but failed.
I used the following code:
{{% if item.m_date != item.p_date %} <p›m-Date: {{ item.m_date|date(“Y-m-d”) }}
(% endif %}}
I attach my project link here : project
Could someone pls. help me to fix the problem?
TIA
Thanks for your help! that’s what I want.
However, one more question.
There appears to be an empty line above the “modify date”. Can I avoid this?
TIA
Pls. check picture below