---
layout: default
---

<header class="header page-header">
  <div class="page-title">
    <h1 itemprop="headline">{{ page.title }}</h1>
  </div>
</header>

<main class="page-content" role="main">
  <section class="page-body" {% if page.schema_type == nil or page.schema_type == "https://schema.org/Article" %}itemprop="articleBody"{% endif %}>
    {% if page.schema_type == nil %}
      <div class="datetime">
        {% capture duration %}{{ content | number_of_words | divided_by: 200 }}{% endcapture %}
        {% if duration != '0' %}<span>{{ duration }} min read</span>{% endif %}<time datetime="{{ page.date | date: '%F' }}" itemprop="datePublished">{{ page.date | date_to_string }}</time>
      </div>
    {% endif %}

    {{ content }}

    {% if page.last_update %}
      <small class="footnote">Last update: <time datetime="{{ page.last_update }}" itemprop="dateModified">{{ page.last_update }}</time></small>
    {% endif %}
  </section>
</main>

<footer class="footer page-footer">
  <small>Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.</small>
</footer>

---
layout: default
---

<header class="header page-header">
  <div class="page-title">
    <h1 itemprop="headline">{{ page.title }}</h1>
  </div>
</header>

<main class="page-content" role="main">
  <section class="page-body" {% if page.schema_type == nil or page.schema_type == "https://schema.org/Article" %}itemprop="articleBody"{% endif %}>
    {% if page.schema_type == nil and page.date %}
      <div class="datetime">
        {% capture duration %}{{ content | number_of_words | divided_by: 200 }}{% endcapture %}
        {% if duration != '0' %}<span>{{ duration }} min read</span>{% endif %}<time datetime="{{ page.date | date: '%F' }}" itemprop="datePublished">{{ page.date | date_to_string }}</time>
      </div>
    {% endif %}

    {{ content }}

    {% if page.last_update %}
      <small class="footnote">Last update: <time datetime="{{ page.last_update }}" itemprop="dateModified">{{ page.last_update }}</time></small>
    {% endif %}
  </section>
</main>

<footer class="footer page-footer">
  <small>Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.</small>
</footer>

Fix condition: only posts have date
Fix condition: only posts have date
