Skip to content

Instantly share code, notes, and snippets.

@matthewhudson
Last active April 6, 2020 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewhudson/aa295b9643f889c48eff9346888ee5f4 to your computer and use it in GitHub Desktop.
Save matthewhudson/aa295b9643f889c48eff9346888ee5f4 to your computer and use it in GitHub Desktop.

Shell fuction that downloads the boilerplate.html template.

html5() {
  curl -O https://gist.githubusercontent.com/matthewhudson/aa295b9643f889c48eff9346888ee5f4/raw/cce08c2ed5d87ce761eea87b46c0b72358fa7e28/boilerplate.html
}

Alternatively, you can pull the official h5bp like this:

html5() {
  curl -O https://raw.githubusercontent.com/h5bp/html5-boilerplate/master/dist/index.html
}
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
</style>
</head>
<body>
<p>
Ayo!
</p>
<!--
<script src="js/vendor/modernizr-3.8.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.4.1.min.js"><\/script>')</script>
-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment