Skip to content

Commit

Permalink
fix: update canonical and image URLs to use blog subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Phosphorus-M committed Dec 30, 2024
1 parent b0b06b4 commit 80e77c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ pub fn Layout(
} else {
view! {
<>
<link rel="canonical" href=format!("https://rustlang-es.org/{slug}")/>
<link rel="canonical" href=format!("https://blog.rustlang-es.org/{slug}")/>
<meta
property="og:image"
content=format!("https://rustlang-es.org/{slug}.png")
content=format!("https://blog.rustlang-es.org/{slug}.png")
/>
<meta
property="twitter:image"
content=format!("https://rustlang-es.org/{slug}.png")
content=format!("https://blog.rustlang-es.org/{slug}.png")
/>
</>
}
}}

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@rustlang"/>
<link rel="icon" href="/LogoSegunMichael-134de58fcd9af94e.ico"/>
<link rel="icon" href="https://rustlang-es.org/favicon.ico"/>
{if cfg!(debug_assertions) {
view! { <link rel="stylesheet" href="/output.css"/> }
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/article_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn ArticlePage(article: Article) -> impl IntoView {
<Layout
title=title
description=description
slug=format!("blog/articles/{}", article.slug.clone())
slug=format!("articles/{}", article.slug.clone())
>
<BlogContent is_html=article.devto article=article/>
</Layout>
Expand Down

0 comments on commit 80e77c8

Please sign in to comment.