<html lang=β€œen”> {% include head.html %}

<body>

<div class="site-wrapper">
  {% include header.html %}
  <main>
    {{ content }}
  </main>
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
  {% if paginator.previous_page == 1 %}
  <a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">&laquo;</a>
  {% elsif paginator.previous_page%}
  <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
    class="page-item">&laquo;</a>
  {% else %}
  <span class="page-item">&laquo;</span>
  {% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %}
  <span class="page-item">{{ page }}</span>
  {% elsif page == 1 %}
  <a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">{{ page }}</a>
  {% else %}
  <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"
    class="page-item">{{ page }}</a>
  {% endif %} {% endfor %} {% if paginator.next_page %}
  <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">&raquo;</a>
  {% else %}
  <span class="page-item">&raquo;</span>
  {% endif %}
</div>
{% endif %}
<!-- {% include footer.html %} -->
{% if site.google_analytics %}
{% include analytics.html %}
{% endif %}

</body>

<!– Add links to all headings –> <script>

// source: https://david.darn.es/2017/07/25/adding-heading-links-to-your-jekyll-blog/
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); // 1
const linkContent = '<i class="fas fa-link"></i>'; // 2
for (const heading of headings) { // 3
  const linkIcon = document.createElement('a'); // 4
  linkIcon.classList.add('header-link');
  linkIcon.setAttribute('href', `#${heading.id}`); // 5
  linkIcon.innerHTML = linkContent; // 6
  heading.appendChild(linkIcon); // 7
}

</script>

</html>