Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Mendez committed Aug 19, 2022
1 parent d5b5fa1 commit 130ac72
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions _drafts/blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: default
title: My Blog
pagination: enabled: true
permalink: /blog/
---

<div class="home" id="home">
<h1 class="pageTitle">Recent Posts</h1>
<div class="posts noList">
{%- for post in paginator.posts -%}
<article>
<span class="date">{{ post.date | date: '%B %d, %Y' }}</span>
<h3><a class="post-link" href="{{ post.url }}">{{ post.title }}</a></h3>
<p>{%- if post.description -%}{{ post.description }}{%- else -%}{{ post.excerpt | strip_html }}{%- endif -%}</p>
</article>
{%- endfor -%}
</div>
<!-- Pagination links -->
<div class="pagination">
{%- if paginator.previous_page -%}
<a href="{{ paginator.previous_page_path }}" class="previous button__outline">Newer Posts</a>
{%- endif -%}
{%- if paginator.next_page -%}
<a href="{{ paginator.next_page_path }}" class="next button__outline">Older Posts</a>
{%- endif -%}
</div>
</div>

0 comments on commit 130ac72

Please sign in to comment.