Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/restaurant-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2019-12-29 07:59:43 +0300
committersomrat <monnaf37@gmail.com>2019-12-29 07:59:43 +0300
commit1585e442bf895ea7ee026d0f60e0debec7dedb15 (patch)
treecad8d61d00e8f4e868f1dea480d897043f055341
parentf8ac60521f12d0259f887ab2ec5d3ce16a775a6f (diff)
added meta data and google analytics
-rw-r--r--exampleSite/config.toml8
-rw-r--r--exampleSite/content/Homestyle-Chicken-Pot-Pie.md1
-rw-r--r--exampleSite/content/Red-Pepper-Miso-Wings-2.md1
-rw-r--r--exampleSite/content/Red-Pepper-Miso-Wings.md1
-rw-r--r--exampleSite/content/my-first-post.md1
-rw-r--r--exampleSite/content/restaurant.md1
-rw-r--r--layouts/partials/footer.html19
7 files changed, 30 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 32c58c6..ac05f24 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -76,7 +76,13 @@ paginate = 4
#################### default parameters ################################
[params]
logo = "images/logo.png"
-copyright = "Copyright 2019 - All Rights Reserved.Design and Developed By Themefisher.com"
+# meta data
+author = "Themefisher"
+description = "This is meta description"
+# google analitycs ID
+googleAnalitycsID = "Your ID"
+# copyright
+copyright = "Copyright 2019 - All Rights Reserved. Design and Developed By Themefisher.com"
# Preloader
[params.preloader]
diff --git a/exampleSite/content/Homestyle-Chicken-Pot-Pie.md b/exampleSite/content/Homestyle-Chicken-Pot-Pie.md
index 3f9e189..a3a5bce 100644
--- a/exampleSite/content/Homestyle-Chicken-Pot-Pie.md
+++ b/exampleSite/content/Homestyle-Chicken-Pot-Pie.md
@@ -2,6 +2,7 @@
title: "Homestyle Chicken Pot Pie"
date: 2018-12-26T12:23:10+06:00
image: images/blog/blog-img-3.jpg
+description: "this is meta description"
type: "post"
---
diff --git a/exampleSite/content/Red-Pepper-Miso-Wings-2.md b/exampleSite/content/Red-Pepper-Miso-Wings-2.md
index 6346ef8..cab400a 100644
--- a/exampleSite/content/Red-Pepper-Miso-Wings-2.md
+++ b/exampleSite/content/Red-Pepper-Miso-Wings-2.md
@@ -2,6 +2,7 @@
title: "Red Pepper Miso Wings 2"
date: 2018-12-26T12:30:01+06:00
image: images/blog/blog-img-5.jpg
+description: "this is meta description"
type: "post"
---
diff --git a/exampleSite/content/Red-Pepper-Miso-Wings.md b/exampleSite/content/Red-Pepper-Miso-Wings.md
index 0bfe003..a01a1d9 100644
--- a/exampleSite/content/Red-Pepper-Miso-Wings.md
+++ b/exampleSite/content/Red-Pepper-Miso-Wings.md
@@ -2,6 +2,7 @@
title: "Red Pepper Miso Wings"
date: 2018-12-26T12:28:47+06:00
image: images/blog/blog-img-3.jpg
+description: "this is meta description"
type: "post"
---
diff --git a/exampleSite/content/my-first-post.md b/exampleSite/content/my-first-post.md
index 2c62199..fc90e6b 100644
--- a/exampleSite/content/my-first-post.md
+++ b/exampleSite/content/my-first-post.md
@@ -2,6 +2,7 @@
title: "Red Pepper Miso Wings"
date: 2018-12-12T04:28:21+06:00
image: images/blog/blog-img-1.jpg
+description: "this is meta description"
type: "post"
---
diff --git a/exampleSite/content/restaurant.md b/exampleSite/content/restaurant.md
index 27d6e2e..2827144 100644
--- a/exampleSite/content/restaurant.md
+++ b/exampleSite/content/restaurant.md
@@ -2,6 +2,7 @@
title: "Skillet Chicken with Potatoes"
date: 2018-12-26T11:40:41+06:00
image: "images/blog/blog-img-2.jpg"
+description: "this is meta description"
type: "post"
---
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7ab0c00..d5af7e6 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -77,4 +77,21 @@
{{ "<!-- JS Plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.js}}
<script src="{{ .URL | absURL }}"></script>
-{{ end }} \ No newline at end of file
+{{ end }}
+
+{{ "<!-- google analitycs -->" | safeHTML }}
+<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', '//www.google-analytics.com/analytics.js', 'ga');
+ ga('create', '{{ .Site.Params.googleAnalitycsID }}', 'auto');
+ ga('send', 'pageview');
+</script> \ No newline at end of file