Skip to content

Commit a95d2e7

Browse files
author
Matthieu Oger
committed
Move data to _config.yml
1 parent cdf8d89 commit a95d2e7

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

_config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
name: Pixelnest Studio
1+
title: "Pixelnest Studio"
2+
description: "Pixelnest Studio — we craft games and apps."
3+
keywords: "pixelnest, studio, damien, mayance, matthieu, oger, games, apps, development, mobile, web, steredenn"
4+
5+
google_tracking_code: "UA-40226469-1"
6+
27
repository: "pixelnest/pixelnest.github.io"
38

49
# -------------------------------------------------------

_includes/js.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
<script src="/static/bundle.js"></script>
55
{% endif %}
66

7-
{% if jekyll.environment == "production" %}
8-
<script type="text/javascript">
9-
var _gaq = _gaq || [];
10-
_gaq.push(['_setAccount', 'UA-40226469-1']);
11-
_gaq.push(['_trackPageview']);
12-
13-
(function() {
14-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
15-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
16-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
17-
})();
7+
{% if jekyll.environment == "production" and site.google_tracking_code != '' %}
8+
<script>
9+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
13+
ga('create', '{{ site.google_tracking_code }}', 'auto');
14+
ga('send', 'pageview');
1815
</script>
1916
{% endif %}

_includes/meta.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<meta charset="utf-8">
1+
<meta charset="UTF-8">
22
<meta name="viewport" content="width=device-width, initial-scale=1.0">
33

44
{% if page.url == '/' or page.url == '/index.html' %}
5-
<title>Pixelnest Studio</title>
5+
<title>{{ site.title | escape }}</title>
66
{% else %}
7-
<title>{{ page.title }} — Pixelnest Studio</title>
7+
<title>{{ page.title | escape }} — {{ site.title | escape }}</title>
88
{% endif %}
99

1010
<!-- Misc. -->
1111
<link rel="shortcut icon" href="/static/images/favicon.ico?v=0002">
1212
<link rel="alternate" type="application/atom+xml" title="Pixelnest Studio" href="http://feedpress.me/pixelnest">
1313

1414
<!-- Description. -->
15-
<meta name="author" content="Pixelnest Studio">
16-
<meta name="description" content="Pixelnest Studio — we craft games and apps.">
17-
<meta name="keywords" content="pixelnest, studio, damien, mayance, matthieu, oger, games, apps, development, mobile, web, steredenn">
15+
<meta name="author" content="{{ site.title | escape }}">
16+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
17+
<meta name="keywords" content="{{ site.keywords | escape }}">
1818

1919
<!-- Social. -->
2020
<link rel="author" href="http://pixelnest.io/about/">

0 commit comments

Comments
 (0)