Skip to content

Commit

Permalink
fix: replace old url by new urls
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed May 17, 2024
1 parent c416f1f commit cee3e97
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/components/blog_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn BlogContent(
target="_blank"
class="text-sm text-center flex flex-col items-center"
href=format!(
"https://twitter.com/intent/tweet?text=https://www.rustlang-es.org/blog/articles/{}",
"https://twitter.com/intent/tweet?text=https://blog.rustlang-es.org/articles/{}",
article.slug,
)
>
Expand All @@ -65,7 +65,7 @@ pub fn BlogContent(
target="_blank"
class="text-sm text-center flex flex-col items-center"
href=format!(
"http://www.linkedin.com/shareArticle?mini=true&url=https://www.rustlang-es.org/blog/articles/{}",
"http://www.linkedin.com/shareArticle?mini=true&url=https://blog.rustlang-es.org/articles/{}",
article.slug,
)
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/esta_semana_en_rust/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn Header() -> impl IntoView {
<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center ">

<li class="nav-item">
<a href="https://www.rustlang-es.org/rust-book-es" target="_blank">
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
"El libro"
</a>
</li>
Expand Down
10 changes: 5 additions & 5 deletions src/components/esta_semana_en_rust/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ pub fn Layout(
property="og:site_name"
content=format!("Blog de Rust Lang en Español {}", get_year())
/>
<meta property="og:url" content="https://www.rustlang-es.org"/>
<meta property="og:url" content="https://rustlang-es.org"/>
<meta
property="og:image"
content=format!("https://www.rustlang-es.org/blog/articles/{slug}.png")
content=format!("https://blog.rustlang-es.org/articles/{slug}.png")
/>
<meta
property="twitter:image"
content=format!("https://www.rustlang-es.org/blog/articles/{slug}.png")
content=format!("https://blog.rustlang-es.org/articles/{slug}.png")
/>
<link rel="canonical" href=format!("https://www.rustlang-es.org/blog/articles/{slug}")/>
<link rel="canonical" href=format!("https://blog.rustlang-es.org/articles/{slug}")/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@rustlang"/>
<link rel="icon" href="/LogoSegunMichael-134de58fcd9af94e.ico"/>
{if cfg!(debug_assertions) {
view! { <link rel="stylesheet" href="/output.css"/> }
} else {
view! {
<link rel="stylesheet" href="https://www.rustlang-es.org/blog/output.css"/>
<link rel="stylesheet" href="https://blog.rustlang-es.org/output.css"/>
}
}}

Expand Down
2 changes: 1 addition & 1 deletion src/components/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn Header() -> impl IntoView {

<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center">
<li class="nav-item">
<a href="https://www.rustlang-es.org/rust-book-es" target="_blank">
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
"El libro"
</a>
</li>
Expand Down
16 changes: 8 additions & 8 deletions src/components/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,33 @@ pub fn Layout(
property="og:site_name"
content=format!("Blog de Rust Lang en Español {}", get_year())
/>
<meta property="og:url" content="https://www.rustlang-es.org"/>
<meta property="og:url" content="https://rustlang-es.org"/>

{if is_home {
view! {
<>
<link rel="canonical" href="https://www.rustlang-es.org/blog"/>
<link rel="canonical" href="https://blog.rustlang-es.org"/>
<meta
property="og:image"
content=format!("https://www.rustlang-es.org/{slug}")
content=format!("https://rustlang-es.org/{slug}")
/>
<meta
property="twitter:image"
content=format!("https://www.rustlang-es.org/{slug}")
content=format!("https://rustlang-es.org/{slug}")
/>
</>
}
} else {
view! {
<>
<link rel="canonical" href=format!("https://www.rustlang-es.org/{slug}")/>
<link rel="canonical" href=format!("https://rustlang-es.org/{slug}")/>
<meta
property="og:image"
content=format!("https://www.rustlang-es.org/{slug}.png")
content=format!("https://rustlang-es.org/{slug}.png")
/>
<meta
property="twitter:image"
content=format!("https://www.rustlang-es.org/{slug}.png")
content=format!("https://rustlang-es.org/{slug}.png")
/>
</>
}
Expand All @@ -76,7 +76,7 @@ pub fn Layout(
view! { <link rel="stylesheet" href="/output.css"/> }
} else {
view! {
<link rel="stylesheet" href="https://www.rustlang-es.org/blog/output.css"/>
<link rel="stylesheet" href="https://blog.rustlang-es.org/output.css"/>
}
}}

Expand Down
4 changes: 2 additions & 2 deletions src/models/article.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl From<&Article> for Item {
.format("%a, %d %b %Y %T %z")
.to_string();
let link = format!(
"https://www.rustlang-es.org/blog/articles/{}.html",
"https://blog.rustlang-es.org/articles/{}.html",
value.slug.clone()
);
Item {
Expand Down Expand Up @@ -178,7 +178,7 @@ impl From<&Article> for Item {
content: None,
enclosure: Some(Enclosure {
url: format!(
"https://www.rustlang-es.org/blog/articles/{}.png",
"https://blog.rustlang-es.org/articles/{}.png",
value.slug.clone()
),
length: "626471".to_string(),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn generate_feed_rss(
.title(title.to_string())
.description(description.to_string())
.link(format!(
"https://www.rustlang-es.org/blog/{}",
"https://blog.rustlang-es.org/{}",
link_path.unwrap_or_default()
))
.categories(categories)
Expand Down

0 comments on commit cee3e97

Please sign in to comment.