From cee3e974c91550055078b0318e62b7dc1f9171f7 Mon Sep 17 00:00:00 2001
From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com>
Date: Fri, 17 May 2024 00:39:15 -0400
Subject: [PATCH] fix: replace old url by new urls
---
src/components/blog_content.rs | 4 ++--
src/components/esta_semana_en_rust/header.rs | 2 +-
src/components/esta_semana_en_rust/layout.rs | 10 +++++-----
src/components/header.rs | 2 +-
src/components/layout.rs | 16 ++++++++--------
src/models/article.rs | 4 ++--
src/utils/mod.rs | 2 +-
7 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/src/components/blog_content.rs b/src/components/blog_content.rs
index f7c4aed..3953445 100644
--- a/src/components/blog_content.rs
+++ b/src/components/blog_content.rs
@@ -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,
)
>
@@ -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,
)
>
diff --git a/src/components/esta_semana_en_rust/header.rs b/src/components/esta_semana_en_rust/header.rs
index 3ce1154..5aaef60 100644
--- a/src/components/esta_semana_en_rust/header.rs
+++ b/src/components/esta_semana_en_rust/header.rs
@@ -37,7 +37,7 @@ pub fn Header() -> impl IntoView {
-
-
+
"El libro"
diff --git a/src/components/esta_semana_en_rust/layout.rs b/src/components/esta_semana_en_rust/layout.rs
index 69283bf..fda3f44 100644
--- a/src/components/esta_semana_en_rust/layout.rs
+++ b/src/components/esta_semana_en_rust/layout.rs
@@ -32,16 +32,16 @@ pub fn Layout(
property="og:site_name"
content=format!("Blog de Rust Lang en Español {}", get_year())
/>
-
+
-
+
@@ -49,7 +49,7 @@ pub fn Layout(
view! { }
} else {
view! {
-
+
}
}}
diff --git a/src/components/header.rs b/src/components/header.rs
index 2685549..38b8cfc 100644
--- a/src/components/header.rs
+++ b/src/components/header.rs
@@ -31,7 +31,7 @@ pub fn Header() -> impl IntoView {
-
-
+
"El libro"
diff --git a/src/components/layout.rs b/src/components/layout.rs
index 7bd9683..8eb1164 100644
--- a/src/components/layout.rs
+++ b/src/components/layout.rs
@@ -37,33 +37,33 @@ pub fn Layout(
property="og:site_name"
content=format!("Blog de Rust Lang en Español {}", get_year())
/>
-
+
{if is_home {
view! {
<>
-
+
>
}
} else {
view! {
<>
-
+
>
}
@@ -76,7 +76,7 @@ pub fn Layout(
view! { }
} else {
view! {
-
+
}
}}
diff --git a/src/models/article.rs b/src/models/article.rs
index f932eb2..8f5bdba 100644
--- a/src/models/article.rs
+++ b/src/models/article.rs
@@ -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 {
@@ -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(),
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 265790b..f8e1df9 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -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)