File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ struct BuildsPage {
27
27
metadata : MetaData ,
28
28
builds : Vec < Build > ,
29
29
limits : Limits ,
30
+ canonical_url : String ,
30
31
}
31
32
32
33
impl_webpage ! {
@@ -118,6 +119,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
118
119
) ,
119
120
builds,
120
121
limits,
122
+ canonical_url : format ! ( "https://docs.rs/crate/{}/latest/builds" , name) ,
121
123
}
122
124
. into_response ( req)
123
125
}
Original file line number Diff line number Diff line change 5
5
{{ macros::doc_title(name=metadata.name, version=metadata.version) }}
6
6
{%- endblock title -%}
7
7
8
+ {%- block meta -%}
9
+ < link rel ="canonical " href ="{{ canonical_url | safe }} " />
10
+ {%- endblock -%}
11
+
8
12
{%- block topbar -%}
9
13
{%- set latest_version = "" -%}
10
14
{%- set latest_path = "" -%}
You can’t perform that action at this time.
0 commit comments