Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
karladler committed Feb 5, 2024
1 parent 19efcb8 commit e0a0a0c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 14 deletions.
11 changes: 11 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
---
<article id="post-page">
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date_to_xmlschema }}" class="by-line">{{ page.date | date_to_string }}</time>

<div class="content">
{{ content }}
</div>
</article>
14 changes: 0 additions & 14 deletions _pages/index.html

This file was deleted.

30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: default
---
<!-- Posts -->
<ul id="posts">

{% for post in paginator.posts %}

<li class="post">
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">{{ post.date | date_to_string }}</time>
<p>{{ post.content | strip_html | truncatewords:50 }}</p>
</li>

{% endfor %}

</ul>

<hr/>
<h1>Latest Events</h1>

<ul>
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
</li>
{% endfor %}
</ul>

0 comments on commit e0a0a0c

Please sign in to comment.