Skip to content

Issue with date display in teaching post on Jekyll site #2244

Closed
@ManeeshaAmpagouni

Description

@ManeeshaAmpagouni

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:

  1. Fork the academicpages.github.io repository.
  2. Create a teaching post markdown file without the date and venue fields.
  3. Modify the archive-single.html template to exclude date and venue display.
  4. 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.
Teaching Page
Teaching Post - Date Bug Screenshot

Desktop:

  • OS: Mac
  • Browser: Safari

Additional context
I've tried the following steps to resolve the issue:

  1. Removed date and venue fields from the markdown file.
  2. 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.

Metadata

Metadata

Assignees

Labels

bugA bug.info neededMore information is needed for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions