1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 20:27:37 +00:00
Files
TypeScript-Node-Starter/views/layout.pug
Peter Blazejewicz 2a14208683 Update view markups for HTML5
This commit:
- removes obsolate frameborder scrolling attributes from iframe
replacing them with inline style
- correct values for inline width/height for embedded iframe
- adds lang attr
- sort order of the head elements: see e.g. https://git.io/vNfEF
- update GA insline script to their shortest version and async/deferred script,
see: https://git.io/vNfuU
- use unbuffered comments so there is no output in transpiled html

Thanks!
2018-01-04 20:20:53 +01:00

32 lines
1008 B
Plaintext

doctype html
html(lang='')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
title #{title} - Hackathon Starter
meta(name='description', content='')
meta(name='theme-color' content='#4DA5F4')
meta(name='csrf-token', content=_csrf)
link(rel='shortcut icon', href='/images/favicon.png')
link(rel='stylesheet', href='/css/main.css')
body
include partials/header
.container
include partials/flash
block content
include partials/footer
script(src='/js/lib/jquery-3.1.1.min.js')
script(src='/js/lib/bootstrap.min.js')
script(src='/js/main.js')
//- Google Analytics: change UA-XXXXX-X to be your site's ID
script.
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
script(src='https://www.google-analytics.com/analytics.js' async defer)