Description
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:
- Fork the academicpages.github.io repository.
- Create a teaching post markdown file without the date and venue fields.
- Modify the archive-single.html template to exclude date and venue display.
- Deploy the site and navigate to the teaching post.
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:
- OS: Mac
- Browser: Safari
Additional context
I've tried the following steps to resolve the issue:
- Removed date and venue fields from the markdown file.
- Modified archive-single.html as follows:
{% if post.collection == 'teaching' %}
{% 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 %} 3. I also tried removing these lines entirely from the code and the issue still persisted.