_layouts/default.html in jekyll-theme-cayman-0.0.3 vs _layouts/default.html in jekyll-theme-cayman-0.0.4

- old
+ new

@@ -1,10 +1,11 @@ <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <title>{{ page.title | default: site.title }}</title> + <meta name="description" content="{{ page.description | default: site.description | default: site.github.project_tagline }}"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#157878"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> </head> @@ -32,17 +33,16 @@ </footer> </section> {% if site.google_analytics %} <script type="text/javascript"> - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); - document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); - </script> - <script type="text/javascript"> - try { - var pageTracker = _gat._getTracker("{{ site.google_analytics }}"); - pageTracker._trackPageview(); - } catch(err) {} + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{ site.google_analytics }}', 'auto'); + ga('send', 'pageview'); </script> {% endif %} </body> </html>