layout.hbs 2.06 KB
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{title}}</title>
        <meta name="keywords" content="{{keywords}}">
        <meta name="description" content="{{description}}">
        {{#if cononicalURL}} <link rel="cononical" href="{{cononicalURL}}"/> {{/if}}
        <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" />
        {{#dnsPrefetch.hosts}}
            <link rel="dns-prefetch" href="{{this}}">
        {{/dnsPrefetch.hosts}}

        {{#if devEnv}}
            <link rel="stylesheet" href="//{{devHost}}:5002/css/index.css">
            <link rel="stylesheet" href="//{{devHost}}:5002/css/cart.index.css">

        {{^}}
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/index.css">
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/cart.index.css">
        {{/if}}
    </head>
    <body>
        {{> mobile-refer}}

        {{> header}}
        {{> common/simple-header}}
        {{#if pageErr}}
            {{> 404}}
        {{^}}
            {{{body}}}
        {{/if}}
        {{> footer}}
        {{#if devEnv}}
            <script src="//{{devHost}}:5002/libs.js"></script>
            <script src="//{{devHost}}:5002/{{module}}.{{page}}.js"></script>
        {{^}}
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/libs.js"></script>
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
            {{> analysis}}
        {{/if}}
        <script>window.cdn='{{cdn}}';</script>
    </body>
</html>