Created
July 17, 2020 20:51
-
-
Save Fumenoid/598a79b96390f1169e06db76157cd1ab to your computer and use it in GitHub Desktop.
Chalk theme's corrected index.html file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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