Skip to content

Commit

Permalink
First cut at adding schema.org markup #11
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Nov 16, 2019
1 parent 6ca8c57 commit a985889
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions templates/_includes/course_teaser.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

{% if course %}
{% assign course_link = site.baseurl | append: course.url %}
<article class="card-container clearfix">
<article class="card-container clearfix" itemscope itemtype="http://schema.org/Course">
<div class="card-mask">
<a class="card card-course" href="{{ course_link }}">
<h1 class="card-title size-large">
<a class="card card-course" href="{{ course_link }}" itemprop="url">
<h1 class="card-title size-large" itemprop="name">
<b>{{ course.title | smartify }}</b>
</h1>

Expand All @@ -27,7 +27,7 @@
{% endif %}
</h3>

<div class="prose">
<div class="prose" itemprop="abstract">
{{ course.brief | markdownify }}
</div>

Expand Down
8 changes: 4 additions & 4 deletions templates/_includes/trainers_list.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
{% for tr_id in include.trainers %}
{% assign trainer = site.trainers | where: 'id', tr_id | first %}
{% if trainer %}
<li class="person">
<li class="person" itemprop="instructor" itemscope itemtype="http://schema.org/Person">
{% if trainer.photo %}
<figure class="person-photo">
<img alt=" " src="{{ site.baseurl | append: trainer.photo }}">
<img alt=" " src="{{ site.baseurl | append: trainer.photo }}" itemprop="image">
</figure>
{% endif %}

{% if compact != true %}
<div class="person-info">
<h5 class="person-name size-regular">
<h5 class="person-name size-regular" itemprop="name">
{{ trainer.title | smartify }}
</h5>

{% if trainer.links.twitter %}
<span class="person-handle size-small">
<span class="person-handle size-small" itemprop="url">
@{{ trainer.links.twitter }}
</span>
{% endif %}
Expand Down

0 comments on commit a985889

Please sign in to comment.