From 2b742fbbd1ad6435e46835666ad21e5c958dc314 Mon Sep 17 00:00:00 2001 From: Lev Date: Fri, 19 Jan 2024 12:53:26 -0800 Subject: [PATCH] Fix /blog link in dashboard --- .../src/components/navigation/navbar/web_app/template.html | 4 ++-- .../components/sections/footers/marketing_footer/mod.rs | 2 +- pgml-dashboard/src/utils/markdown.rs | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pgml-dashboard/src/components/navigation/navbar/web_app/template.html b/pgml-dashboard/src/components/navigation/navbar/web_app/template.html index 8efdba940..2ee5460a0 100644 --- a/pgml-dashboard/src/components/navigation/navbar/web_app/template.html +++ b/pgml-dashboard/src/components/navigation/navbar/web_app/template.html @@ -56,7 +56,7 @@
<% if !account_management_nav.links.is_empty() { %> @@ -84,7 +84,7 @@ <% if !standalone_dashboard { %> diff --git a/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs b/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs index c2b2e4cb9..2feb44f44 100644 --- a/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs +++ b/pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs @@ -22,7 +22,7 @@ impl MarketingFooter { ], resources: vec![ StaticNavLink::new("Documentation".into(), "/docs/".into()), - StaticNavLink::new("Blog".into(), "/blog/".into()), + StaticNavLink::new("Blog".into(), "/blog".into()), ], company: vec![ StaticNavLink::new("Careers".into(), "/careers/".into()), diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 30a959a4c..e3a0686a3 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -435,7 +435,7 @@ pub fn get_author<'a>(root: &'a AstNode<'a>) -> (Option, Option Ok(true), }, - // author and name are assumed to be the next two lines of text after the author image. + // author and name are assumed to be the next two lines of text after the author image. NodeValue::Text(text) => { if image.is_some() && name.is_none() && date.is_none() { name = Some(text.clone()); @@ -464,14 +464,13 @@ pub fn get_author<'a>(root: &'a AstNode<'a>) -> (Option, Option None, }; - // if date is not the correct form assume the date and author did not get parsed correctly. + // if date is not the correct form assume the date and author did not get parsed correctly. if date.is_none() { (None, None, image) } else { (name, date, image) } - - }, + } _ => (None, None, None), } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy