Skip to content

Commit

Permalink
Sort posts by date
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkomath committed Jul 26, 2023
1 parent cfc382b commit 163d919
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 25 deletions.
1 change: 1 addition & 0 deletions src/Settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ style_urls = [
links = [
{ label = "~/", url = "/" },
{ label = "Open-source", url = "https://github.com/arjunkomath" },
{ label = "Twitter", url = "https://twitter.com/arjunz" },
]

[data]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Debugging ACM certificate stuck in 'Pending validation'"
date_published: Tue Oct 25 2022
date_published: 1666654043000
cover: https://images.unsplash.com/photo-1648337564744-f919c7c2fc02?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDM4fHxjZXJ0aWZpY2F0ZXxlbnwwfHx8fDE2NjY2ODg2MDU&ixlib=rb-4.0.3&q=80&w=2000
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/fault-tolerant-home-lab-hosting.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Fault tolerant home lab hosting"
date_published: Thu Sep 22 2022
date_published: 1663806443000
cover: https://cdn.hashnode.com/res/hashnode/image/upload/v1682040934961/a4c730b8-7925-41f5-8efa-6a4215ac9432.jpeg
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Fixing Docker MTU for private networks and VPNs"
date_published: Tue Jan 25 2022
date_published: 1579908443000
cover: https://images.unsplash.com/photo-1613690399151-65ea69478674?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDV8fGNvbnRhaW5lcnxlbnwwfHx8fDE2NDMwNzcxOTA&ixlib=rb-1.2.1&q=80&w=2000
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Free website monitoring with instant push notification alerts"
date_published: Tue Feb 11 2020
date_published: 1581377243000
cover: https://images.unsplash.com/photo-1573164713988-8665fc963095?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDN8fHNlcnZlcnxlbnwwfHx8fDE2NDIxNTAxMzM&ixlib=rb-1.2.1&q=80&w=2000
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Hosting public services on your home server using NGINX and Tailscale"
date_published: Fri Feb 04 2022
date_published: 1643930843000
featured: true
cover: https://images.unsplash.com/photo-1504639725590-34d0984388bd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDcyfHx3ZWIlMjBzdGFydHVwfGVufDB8fHx8MTY0MjMxMTkzMQ&ixlib=rb-1.2.1&q=80&w=2000
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "How I Built a Serverless API to Optimize User-Uploaded Images on the Fly"
date_published: Thu Apr 20 2023
date_published: 1681950443000
featured: true
cover: https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDl8fGZpeHxlbnwwfHx8fDE2ODE5ODU1NjQ&ixlib=rb-4.0.3&q=80&w=2000
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/how-to-get-push-notifications-from-github.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "How to: Get push notifications from GitHub"
date_published: Mon Nov 11 2019
date_published: 1573428443000
cover: https://images.unsplash.com/photo-1584091377126-3817650725fc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDN8fG5vdGlmaWNhdGlvbnxlbnwwfHx8fDE2NDIxNDk2NjI&ixlib=rb-1.2.1&q=80&w=2000
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "How to setup remote access to home server using Tailscale"
date_published: Sat Jan 15 2022
date_published: 1642202843000
cover: https://images.unsplash.com/photo-1502945015378-0e284ca1a5be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDM4fHxyZW1vdGUlMjB3b3JrfGVufDB8fHx8MTY0MjI0NDAzNA&ixlib=rb-1.2.1&q=80&w=2000
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/how-to-unraid-flash-backup-to-cloud-drive.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "How to: Backup UNRAID flash to cloud drive"
date_published: Mon Oct 24 2022
date_published: 1666567643000
featured: true
cover: https://images.unsplash.com/photo-1589532768434-a92c95dad7cb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDZ8fGJhY2t1cHxlbnwwfHx8fDE2NjY2MTY5NTU&ixlib=rb-4.0.3&q=80&w=2000
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/my-first-vs-code-extension.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "My First VS Code Extension"
date_published: Thu May 10 2018
date_published: 1525912043000
cover: https://cdn.hashnode.com/res/hashnode/image/upload/v1682041031187/aefb63d3-40ba-4ca8-8adb-0a69a1477f03.png
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "My home lab setup with UNRAID, Jan 2022 edition"
date_published: Wed Jan 19 2022
date_published: 1642548443000
cover: https://images.unsplash.com/photo-1558494949-ef010cbdcc31?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fHNlcnZlcnxlbnwwfHx8fDE2NDI1NzIyNDU&ixlib=rb-1.2.1&q=80&w=2000
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/story-behind-every-product-ive-build.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "Story behind every product I've build - Part 1 of ?"
date_published: Sun Dec 04 2022
date_published: 1670110043000
cover: https://images.unsplash.com/photo-1543726969-a1da85a6d334?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDN8fHN0b3J5fGVufDB8fHx8MTY2OTI5MjA1OQ&ixlib=rb-4.0.3&q=80&w=2000
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/the-web-badging-api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
template: post
title: "The Web Badging API"
date_published: Mon Nov 04 2019
date_published: 1572823643000
cover: https://cdn.hashnode.com/res/hashnode/image/upload/v1682041012408/f82b95ab-7d10-43fc-9147-6da3f6ea0bd8.png
---

Expand Down
4 changes: 2 additions & 2 deletions src/theme/blog.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{{content}}}

<ul>
{{#each root}}
{{#each (sort-by root "date_published" "desc")}}
{{#if (not (eq @key "_self"))}}
<hgroup>
<h4><a href="/{{@key}}/">{{this.title}}</a></h4>
<h2>{{this.date_published}}</h2>
<h2>// {{format-date this.date_published "%a, %b %e %Y"}}</h2>
</hgroup>
{{/if}}
{{/each}}
Expand Down
24 changes: 14 additions & 10 deletions src/theme/post.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article>
<header>
<h3>{{title}}</h3>
<h3>{{data.title}}</h3>

{{#if data.author}}
<p>
Expand All @@ -12,20 +12,24 @@
</p>
{{/if}}

{{#if date_published}}
<p><small>// {{date_published}}</small></p>
{{#if data.date_published}}
<p><small>// {{format-date data.date_published "%a, %b %e %Y"}}</small></p>
{{/if}}

{{#if cover}}
<div class="post-cover" style="background-image: url({{cover}});" alt="{{title}}" />
{{#if data.cover}}
<div class="post-cover" style="background-image: url({{data.cover}});" alt="{{data.title}}" />
{{/if}}
</header>

{{{body}}}

{{#if some_data}}
<footer><small>
{{some_data}}
</small></footer>
{{/if}}
<footer>
{{#if data.author}}
<p>
{{#if data.author_link}}
<small>// Find me on Twitter/X <a href="{{data.author_link}}">@arjunz</a></small>
{{/if}}
</p>
{{/if}}
</footer>
</article>

0 comments on commit 163d919

Please sign in to comment.