File tree Expand file tree Collapse file tree 5 files changed +17
-7
lines changed Expand file tree Collapse file tree 5 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 40
40
" foundation/**/*.md" ,
41
41
" roadmap/**/*.md" ,
42
42
" roadmap/**/*.yml" ,
43
+ " errors/**/*.md" ,
43
44
" toc.yml" ,
44
45
" *.md"
45
46
],
Original file line number Diff line number Diff line change
1
+ ---
2
+ redirect : ../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only
3
+ ---
4
+
5
+ [ url_validation] ( ../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only )
Original file line number Diff line number Diff line change 3
3
*/
4
4
exports . preTransform = function ( model ) {
5
5
6
+ // Handle redirect urls that end with .md
7
+ if ( model . redirect ) {
8
+ model . redirect = model . redirect . replace ( / \. m d / g, '.html' ) ;
9
+ }
6
10
7
11
// For layout pages, ignore injecting title and description as header and
8
12
// first paragraph
Original file line number Diff line number Diff line change 2
2
{{!include(/^public/.*/)}}
3
3
<!DOCTYPE html>
4
4
<html {{#_lang}}lang="{{_lang}}"{{/_lang}}>
5
- {{#redirect_url }}
5
+ {{#redirect }}
6
6
{{>partials/redirect}}
7
- {{/redirect_url }}
7
+ {{/redirect }}
8
8
9
- {{^redirect_url }}
9
+ {{^redirect }}
10
10
<head>
11
11
{{>partials/head}}
12
12
</head>
81
81
<script type="text/javascript" src="/public/injectDonateButton.js"></script>
82
82
<script type="text/javascript" src="/public/questionAnswer.js"></script>
83
83
</body>
84
- {{/redirect_url }}
84
+ {{/redirect }}
85
85
</html>
Original file line number Diff line number Diff line change 1
1
<meta charset="utf-8"/>
2
2
<title>Redirecting…</title>
3
3
<link rel="canonical" href="{{ redirect.to | url }}"/>
4
- <script>location = '{{redirect_url }}';</script>
5
- <meta http-equiv="refresh" content="0; url={{redirect_url }}"/>
4
+ <script>location = '{{redirect }}';</script>
5
+ <meta http-equiv="refresh" content="0; url={{redirect }}"/>
6
6
<meta name="robots" content="noindex"/>
7
7
<h1>Redirecting…</h1>
8
- <a href="{{redirect_url }}">Click here if you are not redirected.</a>
8
+ <a href="{{redirect }}">Click here if you are not redirected.</a>
You can’t perform that action at this time.
0 commit comments