Showing
2 changed files
with
3 additions
and
3 deletions
| ... | @@ -54,7 +54,7 @@ function MdAction (alias_name, md_path) { | ... | @@ -54,7 +54,7 @@ function MdAction (alias_name, md_path) { |
| 54 | return next(); | 54 | return next(); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | - let resource_base = req.original_uri.base || ''; | 57 | + let resource_base = req.original_uri.base || '/'; |
| 58 | let html = viewer.render(urls[1], query.t, resource_base); | 58 | let html = viewer.render(urls[1], query.t, resource_base); |
| 59 | res.send(html) | 59 | res.send(html) |
| 60 | 60 | ... | ... |
| ... | @@ -6,8 +6,8 @@ | ... | @@ -6,8 +6,8 @@ |
| 6 | <%= tittle %> | 6 | <%= tittle %> |
| 7 | </title> | 7 | </title> |
| 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 9 | - <link rel="stylesheet" href="<%= resource_base + '/markdown.css'%>"> | 9 | + <link rel="stylesheet" href="<%= resource_base + 'markdown.css'%>"> |
| 10 | - <link rel="stylesheet" href="<%= resource_base + '/' + theme + '/' + theme + '.css' %>"> | 10 | + <link rel="stylesheet" href="<%= resource_base + theme + '/' + theme + '.css' %>"> |
| 11 | </head> | 11 | </head> |
| 12 | <body> | 12 | <body> |
| 13 | <div class='markdown <%= theme %>'> | 13 | <div class='markdown <%= theme %>'> | ... | ... |
-
Please register or login to post a comment