File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
66 < title > < %= title %> </ title >
7+ < link rel ="canonical " href ="<%= canonicalLink %> " />
78</ head >
89
910< body class ="d-flex flex-column height-full ">
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const srcMarkdownFilePath = path.join(
2222const title = `Руководство Google по стилю написания кода
2323на языке TypeScript (перевод)` ;
2424const menuTitle = "Содержание" ;
25+ const canonicalLink = "https://olegbarabanov.github.io/google-typescript-style-guide-ru/" ;
2526
2627module . exports = {
2728 cache : false ,
@@ -42,6 +43,7 @@ module.exports = {
4243 new webpack . DefinePlugin ( {
4344 title : JSON . stringify ( title ) ,
4445 menuTitle : JSON . stringify ( menuTitle ) ,
46+ canonicalLink : JSON . stringify ( canonicalLink ) ,
4547 content : webpack . DefinePlugin . runtimeValue (
4648 ( ) => {
4749 const markdown = fs . readFileSync ( srcMarkdownFilePath ) ;
You can’t perform that action at this time.
0 commit comments