* Fix issue #705 * Add canonical links to blogs too
This commit is contained in:
parent
9ede06e7a3
commit
e53574970c
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
<link href='@Instance::get_local().unwrap().compute_box("~", &blog.fqn, "atom.xml")' rel='alternate' type='application/atom+xml'>
|
<link href='@Instance::get_local().unwrap().compute_box("~", &blog.fqn, "atom.xml")' rel='alternate' type='application/atom+xml'>
|
||||||
<link href='@blog.ap_url' rel='alternate' type='application/activity+json'>
|
<link href='@blog.ap_url' rel='alternate' type='application/activity+json'>
|
||||||
|
<link href='@blog.ap_url' rel='canonical'>
|
||||||
@if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) {
|
@if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) {
|
||||||
@if let Some(ref theme) = blog.theme {
|
@if let Some(ref theme) = blog.theme {
|
||||||
<link rel="stylesheet" href="@uri!(plume_static_files: file = Path::new("css").join(theme).join("theme.css"), _build_id = CACHE_NAME)">
|
<link rel="stylesheet" href="@uri!(plume_static_files: file = Path::new("css").join(theme).join("theme.css"), _build_id = CACHE_NAME)">
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
}
|
}
|
||||||
<meta property="og:url" content="@uri!(posts::details: blog = &blog.fqn, slug = &article.slug, responding_to = _)"/>
|
<meta property="og:url" content="@uri!(posts::details: blog = &blog.fqn, slug = &article.slug, responding_to = _)"/>
|
||||||
<meta property="og:description" content="@article.subtitle"/>
|
<meta property="og:description" content="@article.subtitle"/>
|
||||||
|
<link rel="canonical" href="@article.ap_url"/>
|
||||||
|
|
||||||
@if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) {
|
@if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) {
|
||||||
@if let Some(ref theme) = blog.theme {
|
@if let Some(ref theme) = blog.theme {
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
<link href='@Instance::get_local().unwrap().compute_box("@", &user.fqn, "atom.xml")' rel='alternate' type='application/atom+xml'>
|
<link href='@Instance::get_local().unwrap().compute_box("@", &user.fqn, "atom.xml")' rel='alternate' type='application/atom+xml'>
|
||||||
<link href='@user.ap_url' rel='alternate' type='application/activity+json'>
|
<link href='@user.ap_url' rel='alternate' type='application/activity+json'>
|
||||||
|
<link rel="canonical" href="@user.ap_url"/>
|
||||||
}, {}, {
|
}, {}, {
|
||||||
@:header(ctx, &user, follows, is_remote, remote_url)
|
@:header(ctx, &user, follows, is_remote, remote_url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user