Skip to content

Commit

Permalink
push to test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlandry93 committed Jul 14, 2024
1 parent 1a21bba commit 9c7e3a6
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _includes/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ navbar: false
David Landry
</div>
<div class="title-card-bottom-right">
{{ post_date | readableDate("yyyy.LL.dd") }}
{{ date | readableDate("yyyy.LL.dd") }}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/post_metadata.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"headline": "{{ post_title }}",
"name": "{{ post_title }}",
"description": "{{ post_summary }}",
"datePublished": "{{ post_date | htmlDateString }}",
"dateModified": "{{ date_modified | default(post_date) | htmlDateString }}",
"datePublished": "{{ page.date | htmlDateString }}",
"dateModified": "{{ date_modified | default(page.date) | htmlDateString }}",
"url": "{{ page.url }}",
"author" : {
"@type": "Person",
Expand Down
2 changes: 1 addition & 1 deletion content/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ eleventyExcludeFromCollections": true
<entry>
<title>{{ post.data.post_title }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.data.post_date | dateToRfc3339 }}</updated>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content xml:lang="{{ metadata.language }}" type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
Expand Down
6 changes: 3 additions & 3 deletions content/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: base.njk
eleventyImport:
navbar: true
footer: true
collections: ["posts"]
collections: ["post"]
---

<section class="section">
Expand Down Expand Up @@ -86,14 +86,14 @@ collections: ["posts"]
<div class="container is-max-desktop">
<h2 class="title is-4">Latest posts</h2>
<div class="post-grid">
{%- for post in collections.post | sort(attribute='post_date') | reverse -%}
{%- for post in collections.post | reverse -%}
<div class="post-card" >
<div class="post-card-background" style="background-image:url('/images/{{post.data.image}}');">
</div>
<a class="post-card-content" href="{{post.url}}">
<div class="textual-content">
<h3>{{ post.data.post_title }}</h3>
<time datetime="{{ post.data.post_date | htmlDateString }}">{{ post.data.post_date | readableDate("yyyy.LL.dd") }}</time>
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("yyyy.LL.dd") }}</time>
</div>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions content/posts.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ collections: ["publications"]
<h2 class="title is-4">All posts</h2>

<div class="post-grid smaller">
{%- for post in collections.post | sort(attribute='post_date') | reverse -%}
{%- for post in collections.post | reverse -%}
<div class="post-card smaller">
<div class="post-card-background" style="background-image:url('/images/{{post.data.image}}');">
</div>
<a class="post-card-content" href="{{post.url}}">
<div class="textual-content">
<h3>{{ post.data.post_title }}</h3>
<time datetime="{{ post.data.post_date | htmlDateString }}">{{ post.data.post_date | readableDate("yyyy.LL.dd") }}</time>
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("yyyy.LL.dd") }}</time>
</div>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion content/posts/my-experiment-with-analog-zettelkasten.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
post_title: I used an analog Zettelkasten system for 100 notes. Here is what I learned.
post_date: 2023-09-23
date: 2023-09-23
image: pen_watercolor_crop.jpg
keywords:
- Zettelkasten
Expand Down
2 changes: 1 addition & 1 deletion content/posts/nushell.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
post_title: Why Nushell is great
post_date: 2023-08-14
date: 2023-08-14
image: nushell_crop.png
keywords:
- Linux
Expand Down
2 changes: 1 addition & 1 deletion content/posts/obsidian_desk.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
post_title: A Desk for Obsidian
post_date: 2023-08-26
date: 2023-08-26
image: desk_crop.png
keywords:
- Knowledge Management
Expand Down

0 comments on commit 9c7e3a6

Please sign in to comment.