mirror of
https://github.com/inventree/inventree-website.git
synced 2025-06-16 12:05:25 +00:00
strting
This commit is contained in:
12
home/_includes/head.html
Normal file
12
home/_includes/head.html
Normal file
@ -0,0 +1,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="{{ "/dist/index.css" | relative_url }}">
|
||||
<link rel="shortcut icon" type="image/png" href={{ "/assets/favicon.ico" | relative_url }}>
|
||||
|
||||
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
|
||||
<meta itemprop="description" name="description"
|
||||
content="{% if page.description %}{{ page.description | truncate: 160 }}{% else %}{{ site.description | truncate: 160 }}{% endif %}" />
|
||||
|
||||
{% seo %}
|
12
home/_includes/scripts.html
Normal file
12
home/_includes/scripts.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% if site.google_analytics %}
|
||||
<script>
|
||||
(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', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{% endif %}
|
Reference in New Issue
Block a user