layout.hbs 1.62 KB
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{title}}</title>
        <meta name="keywords" content="{{keywords}}">
        <meta name="description" content="{{description}}">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
        <meta http-equiv="cleartype" content="on">
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <meta content="telephone=no" name="format-detection" />
        <meta content="email=no" name="format-detection" />
        <link rel="dns-prefetch" href="//cdn.yoho.cn">
        <link rel="dns-prefetch" href="//static.yohobuy.com">
        <link rel="dns-prefetch" href="//img12.static.yhbimg.com">
        <link rel="dns-prefetch" href="//img13.static.yhbimg.com">
        {{#if devEnv}}
            <link rel="stylesheet" href="//localhost:5002/css/index.css">
        {{^}}
            <link rel="stylesheet" href="//cdn.yoho.cn/yohobuy-node/{{version}}/index.css">
        {{/if}}
    </head>
    <body>
        {{> header}}
        {{#if pageErr}}
            {{> 404}}
        {{^}}
            {{{body}}}
        {{/if}}
        {{> footer}}
        {{#if devEnv}}
            <script src="//localhost:5002/libs.js"></script>
            <script src="//localhost:5002/{{module}}.{{page}}.js"></script>
        {{^}}
            <script src="//cdn.yoho.cn/yohobuy-node/{{version}}/libs.js"></script>
            <script src="//cdn.yoho.cn/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
        {{/if}}
    </body>
</html>