Skip to content

Commit

Permalink
Fix sorting of posts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlandry93 committed Jul 14, 2024
1 parent a73ec49 commit 551efc7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions _static/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,40 @@

@font-face {
font-family: InterTight;
src: url('/fonts/intertight.ttf');
src: url('fonts/intertight.ttf');
}


@font-face {
font-family: Lexend;
src: url('/fonts/lexend.ttf');
src: url('fonts/lexend.ttf');
}


@font-face {
font-family: 'Courier Prime';
src: url('/fonts/CourierPrime-Regular.ttf');
src: url('fonts/CourierPrime-Regular.ttf');
font-style: normal;
font-weight: 400;
}

@font-face {
font-family: 'Courier Prime';
src: url('/fonts/CourierPrime-Italic.ttf');
src: url('fonts/CourierPrime-Italic.ttf');
font-style: italic;
font-weight: 400;
}

@font-face {
font-family: 'Courier Prime';
src: url('/fonts/CourierPrime-Bold.ttf');
src: url('fonts/CourierPrime-Bold.ttf');
font-style: normal;
font-weight: 700;
}

@font-face {
font-family: 'Courier Prime';
src: url('/fonts/CourierPrime-BoldItalic.ttf');
src: url('fonts/CourierPrime-BoldItalic.ttf');
font-style: italic;
font-weight: 700;
}
4 changes: 2 additions & 2 deletions _static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--bulma-scheme-main: #fafafa;
--ruler-red: #ed7f7f;
--base-font: "Lexend", "Arial", sans-serif;
--typewriter-font: "Courier Primer", "Courier New", sans-serif;
--typewriter-font: "Courier Primer", "Courier New", courier;
--bulma-hero-body-padding-medium: 1em;
--bulma-strong-color: black;
}
Expand Down Expand Up @@ -80,7 +80,7 @@ a:hover {
overflow: hidden;
color: black;
display: block;
width: 228px;
width: 226px;
height: 150px;
background-color: white;
line-height: 0.8em;
Expand Down
2 changes: 1 addition & 1 deletion content/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ 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 | reverse -%}
{%- for post in collections.post | sort(attribute='post_date') | reverse -%}
<div class="post-card" >
<div class="post-card-background" style="background-image:url('/images/{{post.data.image}}');">
</div>
Expand Down
2 changes: 1 addition & 1 deletion content/posts.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ collections: ["publications"]
<h2 class="title is-4">All posts</h2>

<div class="post-grid smaller">
{%- for post in collections.post | reverse -%}
{%- for post in collections.post | sort(attribute='post_date') | reverse -%}
<div class="post-card smaller">
<div class="post-card-background" style="background-image:url('/images/{{post.data.image}}');">
</div>
Expand Down
2 changes: 0 additions & 2 deletions content/posts/obsidian_desk.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ post_summary: |
of your notes for a particular topic.
---

<p class="post-topics">topics: Knowledge Management, Obsidian, UX</p>

**I just published a plugin for [Obsidian](https://www.obsidian.md) called
[Desk](https://github.com/davidlandry93/obsidian-desk). Here, I want to explain the
rationale behind it, and why I think it's a useful addition to almost any vault.**
Expand Down

0 comments on commit 551efc7

Please sign in to comment.