Skip to content

Commit cee3e97

Browse files
committed
fix: replace old url by new urls
1 parent c416f1f commit cee3e97

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

src/components/blog_content.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn BlogContent(
5353
target="_blank"
5454
class="text-sm text-center flex flex-col items-center"
5555
href=format!(
56-
"https://twitter.com/intent/tweet?text=https://www.rustlang-es.org/blog/articles/{}",
56+
"https://twitter.com/intent/tweet?text=https://blog.rustlang-es.org/articles/{}",
5757
article.slug,
5858
)
5959
>
@@ -65,7 +65,7 @@ pub fn BlogContent(
6565
target="_blank"
6666
class="text-sm text-center flex flex-col items-center"
6767
href=format!(
68-
"http://www.linkedin.com/shareArticle?mini=true&url=https://www.rustlang-es.org/blog/articles/{}",
68+
"http://www.linkedin.com/shareArticle?mini=true&url=https://blog.rustlang-es.org/articles/{}",
6969
article.slug,
7070
)
7171
>

src/components/esta_semana_en_rust/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn Header() -> impl IntoView {
3737
<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center ">
3838

3939
<li class="nav-item">
40-
<a href="https://www.rustlang-es.org/rust-book-es" target="_blank">
40+
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
4141
"El libro"
4242
</a>
4343
</li>

src/components/esta_semana_en_rust/layout.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@ pub fn Layout(
3232
property="og:site_name"
3333
content=format!("Blog de Rust Lang en Español {}", get_year())
3434
/>
35-
<meta property="og:url" content="https://www.rustlang-es.org"/>
35+
<meta property="og:url" content="https://rustlang-es.org"/>
3636
<meta
3737
property="og:image"
38-
content=format!("https://www.rustlang-es.org/blog/articles/{slug}.png")
38+
content=format!("https://blog.rustlang-es.org/articles/{slug}.png")
3939
/>
4040
<meta
4141
property="twitter:image"
42-
content=format!("https://www.rustlang-es.org/blog/articles/{slug}.png")
42+
content=format!("https://blog.rustlang-es.org/articles/{slug}.png")
4343
/>
44-
<link rel="canonical" href=format!("https://www.rustlang-es.org/blog/articles/{slug}")/>
44+
<link rel="canonical" href=format!("https://blog.rustlang-es.org/articles/{slug}")/>
4545
<meta name="twitter:card" content="summary_large_image"/>
4646
<meta name="twitter:site" content="@rustlang"/>
4747
<link rel="icon" href="/LogoSegunMichael-134de58fcd9af94e.ico"/>
4848
{if cfg!(debug_assertions) {
4949
view! { <link rel="stylesheet" href="/output.css"/> }
5050
} else {
5151
view! {
52-
<link rel="stylesheet" href="https://www.rustlang-es.org/blog/output.css"/>
52+
<link rel="stylesheet" href="https://blog.rustlang-es.org/output.css"/>
5353
}
5454
}}
5555

src/components/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn Header() -> impl IntoView {
3131

3232
<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center">
3333
<li class="nav-item">
34-
<a href="https://www.rustlang-es.org/rust-book-es" target="_blank">
34+
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
3535
"El libro"
3636
</a>
3737
</li>

src/components/layout.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,33 @@ pub fn Layout(
3737
property="og:site_name"
3838
content=format!("Blog de Rust Lang en Español {}", get_year())
3939
/>
40-
<meta property="og:url" content="https://www.rustlang-es.org"/>
40+
<meta property="og:url" content="https://rustlang-es.org"/>
4141

4242
{if is_home {
4343
view! {
4444
<>
45-
<link rel="canonical" href="https://www.rustlang-es.org/blog"/>
45+
<link rel="canonical" href="https://blog.rustlang-es.org"/>
4646
<meta
4747
property="og:image"
48-
content=format!("https://www.rustlang-es.org/{slug}")
48+
content=format!("https://rustlang-es.org/{slug}")
4949
/>
5050
<meta
5151
property="twitter:image"
52-
content=format!("https://www.rustlang-es.org/{slug}")
52+
content=format!("https://rustlang-es.org/{slug}")
5353
/>
5454
</>
5555
}
5656
} else {
5757
view! {
5858
<>
59-
<link rel="canonical" href=format!("https://www.rustlang-es.org/{slug}")/>
59+
<link rel="canonical" href=format!("https://rustlang-es.org/{slug}")/>
6060
<meta
6161
property="og:image"
62-
content=format!("https://www.rustlang-es.org/{slug}.png")
62+
content=format!("https://rustlang-es.org/{slug}.png")
6363
/>
6464
<meta
6565
property="twitter:image"
66-
content=format!("https://www.rustlang-es.org/{slug}.png")
66+
content=format!("https://rustlang-es.org/{slug}.png")
6767
/>
6868
</>
6969
}
@@ -76,7 +76,7 @@ pub fn Layout(
7676
view! { <link rel="stylesheet" href="/output.css"/> }
7777
} else {
7878
view! {
79-
<link rel="stylesheet" href="https://www.rustlang-es.org/blog/output.css"/>
79+
<link rel="stylesheet" href="https://blog.rustlang-es.org/output.css"/>
8080
}
8181
}}
8282

src/models/article.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl From<&Article> for Item {
146146
.format("%a, %d %b %Y %T %z")
147147
.to_string();
148148
let link = format!(
149-
"https://www.rustlang-es.org/blog/articles/{}.html",
149+
"https://blog.rustlang-es.org/articles/{}.html",
150150
value.slug.clone()
151151
);
152152
Item {
@@ -178,7 +178,7 @@ impl From<&Article> for Item {
178178
content: None,
179179
enclosure: Some(Enclosure {
180180
url: format!(
181-
"https://www.rustlang-es.org/blog/articles/{}.png",
181+
"https://blog.rustlang-es.org/articles/{}.png",
182182
value.slug.clone()
183183
),
184184
length: "626471".to_string(),

src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn generate_feed_rss(
3939
.title(title.to_string())
4040
.description(description.to_string())
4141
.link(format!(
42-
"https://www.rustlang-es.org/blog/{}",
42+
"https://blog.rustlang-es.org/{}",
4343
link_path.unwrap_or_default()
4444
))
4545
.categories(categories)

0 commit comments

Comments
 (0)