Skip to content

Instantly share code, notes, and snippets.

@Fumenoid
Created Jul 17, 2020
Embed
What would you like to do?
Chalk theme's corrected index.html file
---
layout: default
title: "home"
description: "Write-ups for CTFS, THM and HTB."
---
<ul class="article-list">
{% for post in paginator.posts %}
<li class="article-list-item {% if site.scrollappear_enabled %}scrollappear{% endif %}">
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
<h5>
{{ post.title }}
{% include svg-icon.html icon="arrow-right" %}
</h5>
</a><br>
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
{% if post.thumb_image %}
<img src="{% asset '{{ post.thumb_image }}' @path %}" alt="{{ post.title }} thumbnail">
{% endif %}
</a>
<p>
{% if post.description %}
{{ post.description }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
{% include article/info-footer.html post=post %}
</li>
{% endfor %}
{% if paginator.total_pages > 1 %}
<li class="article-pagination {% if site.settings.scrollappear_enabled %}scrollappear{% endif %}">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="article-pagination-left">{% include svg-icon.html icon="arrow-left" %} Older posts</a>
{% endif %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="article-pagination-right">Newer posts {% include svg-icon.html icon="arrow-right" %}</a>
{% endif %}
</li>
{% endif %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment