Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpulsar committed Apr 12, 2024
1 parent 35f3730 commit 3847e4f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ kramdown:

# Collections
collections:
contactme:
teaching:
output: true
permalink: /:collection/:path/
publications:
Expand Down Expand Up @@ -235,10 +235,10 @@ defaults:
values:
layout: single
author_profile: true
# _contactme
# _teaching
- scope:
path: ""
type: contactme
type: teaching
values:
layout: single
author_profile: true
Expand Down
4 changes: 2 additions & 2 deletions _contactme/contactme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ permalink: /
title: "Contact Me"
author_profile: true
redirect_from:
- /contactme/
- /contactme.html
- /teaching/
- /teaching.html
---


Expand Down
2 changes: 1 addition & 1 deletion _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 class="archive__item-title" itemprop="headline">
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}

{% if post.collection == 'contactme' %}
{% if post.collection == 'teaching' %}
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif post.collection == 'publications' %}
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p>
{% endif %}

{% if page.collection == 'contactme' %}
{% if page.collection == 'teaching' %}
<p> {{ page.type }}, <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif page.venue and page.date %}
<p>Published in <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
Expand Down

0 comments on commit 3847e4f

Please sign in to comment.