File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ impl HtmlHandlebars {
306
306
307
307
let slug = ctx_path. replace ( ".md" , "" ) ;
308
308
309
- let mut base_url = if let Some ( site_url) = & ctx. html_config . site_url {
309
+ let mut site_url = if let Some ( site_url) = & ctx. html_config . site_url {
310
310
site_url. clone ( )
311
311
} else {
312
312
debug ! (
@@ -317,7 +317,7 @@ impl HtmlHandlebars {
317
317
String :: from ( "/" )
318
318
} ;
319
319
320
- ctx. data . insert ( "base_url " . to_owned ( ) , json ! ( base_url ) ) ;
320
+ ctx. data . insert ( "site_url " . to_owned ( ) , json ! ( site_url ) ) ;
321
321
ctx. data . insert ( "slug" . to_owned ( ) , json ! ( slug) ) ;
322
322
ctx. data . insert ( "path" . to_owned ( ) , json ! ( path) ) ;
323
323
ctx. data . insert ( "content" . to_owned ( ) , json ! ( content) ) ;
Original file line number Diff line number Diff line change 16
16
{{> head }}
17
17
18
18
{{ #if (eq slug " title-page" ) }}
19
- <link rel =" canonical" href =" {{ base_url }} /" />
19
+ <link rel =" canonical" href =" {{ site_url }} /" />
20
20
{{ else }}
21
- <link rel =" canonical" href =" {{ base_url }} /{{ slug }} " />
21
+ <link rel =" canonical" href =" {{ site_url }} /{{ slug }} " />
22
22
{{ /if }}
23
23
24
24
<meta name =" description" content =" {{ description }} " >
You can’t perform that action at this time.
0 commit comments