Skip to content

Commit 8488230

Browse files
authored
Fix /blog link in dashboard (#1295)
1 parent cf95830 commit 8488230

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

pgml-dashboard/src/components/navigation/navbar/web_app/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<div class="vr my-2 opacity-100 d-lg-block d-none" style="width: 2px"></div>
5757

5858
<li class="nav-item d-flex align-items-center">
59-
<a class="nav-link p-lg-0" href="/blog/">Blog</a>
59+
<a class="nav-link p-lg-0" href="/blog">Blog</a>
6060
</li>
6161

6262
<% if !account_management_nav.links.is_empty() { %>
@@ -84,7 +84,7 @@
8484
</li>
8585

8686
<li class="menu-item rounded-0 d-flex align-items-center">
87-
<a href="/blog/">Blog</a>
87+
<a href="/blog">Blog</a>
8888
</li>
8989

9090
<% if !standalone_dashboard { %>

pgml-dashboard/src/components/sections/footers/marketing_footer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl MarketingFooter {
2222
],
2323
resources: vec![
2424
StaticNavLink::new("Documentation".into(), "/docs/".into()),
25-
StaticNavLink::new("Blog".into(), "/blog/".into()),
25+
StaticNavLink::new("Blog".into(), "/blog".into()),
2626
],
2727
company: vec![
2828
StaticNavLink::new("Careers".into(), "/careers/".into()),

pgml-dashboard/src/utils/markdown.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ pub fn get_author<'a>(root: &'a AstNode<'a>) -> (Option<String>, Option<chrono::
435435
}
436436
None => Ok(true),
437437
},
438-
// author and name are assumed to be the next two lines of text after the author image.
438+
// author and name are assumed to be the next two lines of text after the author image.
439439
NodeValue::Text(text) => {
440440
if image.is_some() && name.is_none() && date.is_none() {
441441
name = Some(text.clone());
@@ -464,14 +464,13 @@ pub fn get_author<'a>(root: &'a AstNode<'a>) -> (Option<String>, Option<chrono::
464464
_ => None,
465465
};
466466

467-
// if date is not the correct form assume the date and author did not get parsed correctly.
467+
// if date is not the correct form assume the date and author did not get parsed correctly.
468468
if date.is_none() {
469469
(None, None, image)
470470
} else {
471471
(name, date, image)
472472
}
473-
474-
},
473+
}
475474
_ => (None, None, None),
476475
}
477476
}

0 commit comments

Comments
 (0)
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