Skip to content

Commit

Permalink
Include ga.html only when google_analytics key exist in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeonho Heo committed Aug 31, 2016
1 parent 83ab54f commit ef060f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
{% if jekyll.environment == 'production' %}
{% if jekyll.environment == 'production' and site.google_analytics %}
{% include ga.html %}
{% endif %}
</head>

0 comments on commit ef060f3

Please sign in to comment.