Skip to content
Snippets Groups Projects
index.ejs 1.98 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    <!DOCTYPE html>
    <html lang="{{.Locale}}">
    
      <head>
        <meta charset="utf-8">
        <title><%= htmlWebpackPlugin.options.title %></title>
        <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
        <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
        <!-- PWA Manifest -->
        <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
        <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2">
    
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, viewport-fit=cover">
    
        <!-- PWA Chrome -->
        <link rel="icon" sizes="192x192" href="/android-chrome-192x192.png">
        <link rel="icon" sizes="512x512" href="/android-chrome-512x512.png">
        <!-- PWA iOS -->
        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
        <link rel="apple-touch-startup-image" href="/apple-touch-icon.png">
        <meta name="apple-mobile-web-app-title" content="Ecolyo">
        <meta name="apple-mobile-web-app-capable" content="yes">
    
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
    
        <!-- PWA Colors -->
        <meta name="theme-color" content="#343641" />
        <meta name="background-color" content="#121212" />
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
        <!-- PWA iOS title -->
        <meta name="apple-mobile-web-app-title" content="Ecolyo">
    
        <% _.forEach(htmlWebpackPlugin.files.css, function(file) { %>
            <link rel="stylesheet" href="<%- file %>">
        <% }); %>
        {{.ThemeCSS}}
    
        <% if (__TARGET__ === 'mobile') { %>
        <meta name="format-detection" content="telephone=no">
        <script src="cordova.js" defer></script>
        <% } else if (__STACK_ASSETS__) { %>
        {{.CozyBar}}
        <% } %>
    
        <script src="//{{.Domain}}/assets/js/piwik.js"></script>
    
    
      </head>
      <body>
      <div
        role="application"
        class="application"
    
        data-cozy="{{.CozyData}}"
    
      >
      <% _.forEach(htmlWebpackPlugin.files.js, function(file) { %>
          <script src="<%- file %>"></script>
      <% }); %>
      </body>