Blog format changing

This commit is contained in:
~erin 2022-03-05 17:11:16 -05:00
parent 7a8d50922b
commit 55015745ae
No known key found for this signature in database
GPG Key ID: DA70E064A8C70F44
4 changed files with 33 additions and 6 deletions

View File

@ -1,7 +1,7 @@
---
layout: default.liquid
title: First Post
description: Description
is_draft: true
---

29
_layouts/blog.liquid Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
<link rel="icon" href="/assets/logo.svg">
<title>{{ page.title }}</title>
</head>
<body>
{% include "navigation.liquid" %}
<div class="section">
<div class="inner-section">
{{ page.content }}
{% for post in collections.posts.pages %}
<h3>
<span><a href="{{post.permalink}}">🔗</a></span>
{{ post.title }}
<span><code class="date">{{post.published_date}}</code></span>
</h3>
<p>{{post.description}}</p>
{% endfor %}
</div>
</div>
{% include "footer.liquid" %}
</body>
</html>

View File

@ -1,9 +1,5 @@
---
layout: default.liquid
layout: blog.liquid
permalink: /blog
---
# {{page.title}}
{% for post in collections.posts.pages %}
### [{{ post.title }}](/{{ post.permalink }})
{% endfor %}

View File

@ -1,5 +1,7 @@
---
title: Formatting Test
description: Page to test formatting and CSS
published_date: "2022-03-05 20:51:17 +0000"
layout: default.liquid
is_draft: false
---