Open ManeeshaAmpagouni opened 3 weeks ago
The template is written in such a way that it expects there to always be a date associated with teaching, which is why there is always output present. This is also needed for the sorting of the entries that take place. However, it should be possible to disable dates for the teaching assignments - how would you anticipate this working if you had a couple more teaching assignments to include?
Thank you for your prompt response.
I would like to organize my teaching assignments based on the date, as it is useful for sorting entries. You make a great point! However, moving forward, for future teaching assignments, I would like to include the details of the quarter or semester during which the course is taught. Therefore, instead of displaying a specific year, I would like to display the particular quarter or semester in which I teach. I realize now, I could do that just by modifying the venue by adding a comma.
Thank you for your assistance.
Describe the bug I am experiencing an issue where the date and venue fields are still showing on my teaching post (as ' , , 1900') even after I removed them from the markdown file and attempted to adjust the archive-single.html template.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the date and venue fields not to be displayed at all on the teaching post.
Actual behavior Despite removing the fields and modifying the template, the teaching post still shows ' , , 1900'.
Screenshots The following are the teaching and the teaching post pages.
Desktop:
Additional context I've tried the following steps to resolve the issue:
{% if post.type %}{{ post.type }}{% endif %} {% if post.venue %} {% if post.type %}, {% endif %} {{ post.venue }} {% endif %} {% if post.date %} {% if post.type or post.venue %}, {% endif %} {{ post.date | date: "%Y" }} {% endif %}
{% endif %}