_layouts/default.html in jekyll-theme-architect-0.0.3 vs _layouts/default.html in jekyll-theme-architect-0.0.4
- old
+ new
@@ -16,11 +16,13 @@
</head>
<body>
<header>
<div class="inner">
- <h1>{{ site.title | default: site.github.repository_name }}</h1>
+ <a href="{{ '/' | absolute_url }}">
+ <h1>{{ site.title | default: site.github.repository_name }}</h1>
+ </a>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="button"><small>View project on</small> GitHub</a>
{% endif %}
{% if site.github.is_user_page %}
@@ -56,17 +58,15 @@
</div>
</div>
{% 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>