move into website/

This commit is contained in:
Paul Gauthier 2024-06-05 14:28:39 -07:00
parent 5a4d38418d
commit 56519361e2
103 changed files with 5 additions and 12 deletions

35
website/blog/index.html Normal file
View file

@ -0,0 +1,35 @@
---
layout: default
title: Blog
nav_order: 1000
---
<div class="posts">
{% for post in site.posts %}
{% unless post.draft %}
<article class="post">
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<div class="entry">
<div class="post-content">
{% if post.excerpt %}
{{ post.excerpt }}
{% else %}
{{ post.content | strip_html | truncatewords: 100 }}...
{% endif %}
{% if post.highlight_image %}
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="post-highlight">
<img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
</div>
</a>
{% endif %}
</div>
</div>
<p class="post-date">
{{ post.date | date: "%b %-d, %Y" | upcase }}
</p>
</article>
{% endunless %}
{% endfor %}
</div>