Adding new links for the blogroll, and filtering by blog to return the list of links
This commit is contained in:
parent
b4fa449e09
commit
9ae5e7b7fc
3 changed files with 40 additions and 11 deletions
44
links.txt
44
links.txt
|
|
@ -45,14 +45,7 @@ title: Greg Egan
|
|||
author: Greg Egan
|
||||
type: blog
|
||||
date_added: 2024-08-10
|
||||
description: My favourite author. He writes the hardest science fiction that I have ever found and his blog helps explain the concepts to help with understanding his books.
|
||||
---
|
||||
url: https://www.themarginalian.org
|
||||
title: The Marginalian
|
||||
author: Maria Popova
|
||||
type: blog
|
||||
date_added: 2024-08-10
|
||||
description: One of the first blogs that I followed. Philosophy, history, art. A celebration of the beauty of humanity.
|
||||
description: My favourite author. He writes the hardest science fiction that I have ever found and his blog explains the concepts to help with understanding his books.
|
||||
---
|
||||
url: https://www.themarginalian.org
|
||||
title: The Marginalian
|
||||
|
|
@ -67,3 +60,38 @@ author: Manual Moreale
|
|||
type: blog
|
||||
date_added: 2024-08-10
|
||||
description: Developer who writes about anything but. I like the breadth of his interests and he has pointed me to many other wonderful personal websites as well.
|
||||
---
|
||||
url: https://stephango.com
|
||||
title: Steph Ango
|
||||
author: Steph Ango
|
||||
type: blog
|
||||
date_added: 2024-08-13
|
||||
description: CEO of Obsidian. Writes about a wide variety of thoughts.
|
||||
---
|
||||
url: https://fasterthanli.me
|
||||
title: Faster Than Lime
|
||||
author: Amos
|
||||
type: blog
|
||||
date_added: 2024-08-13
|
||||
description: Very in depth articles on programming and how computers work. Have learned a lot from his work. Also has a youtube channel of the same name.
|
||||
---
|
||||
url: https://pluralistic.net
|
||||
title: Pluralistic
|
||||
author: Cory Doctorow
|
||||
type: blog
|
||||
date_added: 2024-08-13
|
||||
description: Science fiction writer and activist. Mainly in the tech space but his concerns about monopoly power and his self coined enshittification stretch across any one sector.
|
||||
---
|
||||
url: https://berjon.com
|
||||
title: Robin Berjon
|
||||
author: Robin Berjon
|
||||
type: blog
|
||||
date_added: 2024-08-13
|
||||
description: Web developer and works on creating web standards. Very thoughtful work on the future of the web. Envisions a kinder, more people first web where our technologies serve us as opposed to exploiting.
|
||||
---
|
||||
url: https://www.wheresyoured.at
|
||||
title: Where's Your Ed At?
|
||||
author: Ed Zintron
|
||||
type: blog
|
||||
date_added: 2024-08-13
|
||||
description: Tech journalist and critic. I find that his writing starkly points out things that I have felt "wrong" in tech over the past decade and dives into why.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
id: blogroll
|
||||
title: Blogroll
|
||||
date_created: 2024-08-08
|
||||
date_last_updated: 2024-08-08
|
||||
date_last_updated: 2024-08-13
|
||||
description: A list of blogs that I follow
|
||||
---
|
||||
<h2>Blogroll</h2>
|
||||
<p>
|
||||
I follow quite a few blogs.
|
||||
I love good writing and personal websites.
|
||||
Places away from the noise of the modern website, without advertisement or trackers.
|
||||
Places away from the noise of the modern web, without advertisement or trackers.
|
||||
Following links through these is how I spend most of my time online these days.
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use super::blog::get_articles_as_links_list;
|
||||
use crate::{
|
||||
database::{link::Link, PsqlData},
|
||||
database::{link::{Link, LinkType}, PsqlData},
|
||||
html::AppState,
|
||||
};
|
||||
use axum::{response::IntoResponse, routing::get, Extension, Router};
|
||||
|
|
@ -55,6 +55,7 @@ pub async fn get_blog_links_as_list(pool: &PgPool) -> Result<Vec<String>, Box<dy
|
|||
|
||||
let list: Vec<String> = links
|
||||
.iter()
|
||||
.filter(|link| link.link_type == LinkType::BLOG)
|
||||
.map(|link| {
|
||||
let title: String = match &link.title {
|
||||
Some(t) => t.to_string(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue