ericalli / static-site-boilerplate

A better workflow for building modern static websites.
http://staticsiteboilerplate.com
MIT License
1.73k stars 165 forks source link

viewport, IE warning #16

Closed rafa-acioly closed 5 years ago

rafa-acioly commented 5 years ago

What about adding html tags for viewport and the "IE hacking"?

inside head tag:

<meta name="viewport" content="width=device-width, initial-scale=1">

inside body tag:

<!--[if lte IE 9]>
    <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->

Additional context there is some tags that maybe be helpfu: https://github.com/h5bp/html5-boilerplate/blob/master/dist/index.html

ericalli commented 5 years ago

Hey Rafa,

The boilerplate currently adds a viewport meta tag during the build process, it's configrable in the config/site.config.js file. The default value is:

<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">

As far as the IE warning, I'm hesitant to add any markup as a default in the HTML templates. It would be great to hear from other users if they are interested in this.