error.tpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="author" content="Minho" />
  6. <link rel="shortcut icon" href="{{cdnimg "/favicon.ico"}}">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  8. <meta name="renderer" content="webkit" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>服务器异常 - Powered by MinDoc</title>
  11. <link href="{{cdncss "/static/fonts/lato-100.css"}}" rel="stylesheet" type="text/css">
  12. <style type="text/css">
  13. html, body {
  14. height: 100%;
  15. }
  16. body {
  17. margin: 0;
  18. padding: 0;
  19. width: 100%;
  20. color: #B0BEC5;
  21. display: table;
  22. font-weight: 100;
  23. font-family: 'Lato';
  24. }
  25. .container {
  26. text-align: center;
  27. display: table-cell;
  28. vertical-align: middle;
  29. }
  30. .content {
  31. text-align: center;
  32. display: inline-block;
  33. }
  34. .title {
  35. font-size: 72px;
  36. margin-bottom: 40px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="container">
  42. <div class="content">
  43. {{if .ErrorMessage}}
  44. {{if .ErrorCode}}
  45. <div class="title">HTTP {{.ErrorCode}} : {{.ErrorMessage}}</div>
  46. {{else}}
  47. <div class="title">HTTP 500 : {{.ErrorMessage}}</div>
  48. {{end}}
  49. {{else}}
  50. <div class="title">HTTP 500 : 服务器异常</div>
  51. {{end}}
  52. </div>
  53. </div>
  54. </body>
  55. </html>