single-full.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. layout: default
  3. ---
  4. {% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
  5. {% include page__hero.html %}
  6. {% elsif page.header.video.id and page.header.video.provider %}
  7. {% include page__hero_video.html %}
  8. {% endif %}
  9. <div id="main" role="main">
  10. <article class="page" itemscope itemtype="https://schema.org/CreativeWork" style="margin: 0 auto;float:none;">
  11. {% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
  12. {% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
  13. {% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date_to_xmlschema }}">{% endif %}
  14. {% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date_to_xmlschema }}">{% endif %}
  15. <div class="page__inner-wrap">
  16. {% unless page.header.overlay_color or page.header.overlay_image %}
  17. <header>
  18. {% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
  19. {% include page__meta.html %}
  20. </header>
  21. {% endunless %}
  22. <section class="page__content" itemprop="text">
  23. {% if page.toc %}
  24. <aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
  25. <nav class="toc">
  26. <header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4></header>
  27. {% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %}
  28. </nav>
  29. </aside>
  30. {% endif %}
  31. {{ content }}
  32. {% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
  33. </section>
  34. <footer class="page__meta">
  35. {% if site.data.ui-text[site.locale].meta_label %}
  36. <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
  37. {% endif %}
  38. {% include page__taxonomy.html %}
  39. {% include page__date.html %}
  40. </footer>
  41. {% if page.share %}{% include social-share.html %}{% endif %}
  42. {% include post_pagination.html %}
  43. </div>
  44. {% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
  45. {% include comments.html %}
  46. {% endif %}
  47. </article>
  48. {% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
  49. {% if page.id and page.related and site.related_posts.size > 0 %}
  50. <div class="page__related">
  51. <h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
  52. <div class="grid__wrapper">
  53. {% for post in site.related_posts limit:4 %}
  54. {% include archive-single.html type="grid" %}
  55. {% endfor %}
  56. </div>
  57. </div>
  58. {% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
  59. {% elsif page.id and page.related %}
  60. <div class="page__related">
  61. <h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
  62. <div class="grid__wrapper">
  63. {% for post in site.posts limit:4 %}
  64. {% if post.id == page.id %}
  65. {% continue %}
  66. {% endif %}
  67. {% include archive-single.html type="grid" %}
  68. {% endfor %}
  69. </div>
  70. </div>
  71. {% endif %}
  72. </div>