Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

param for promotion and Google analytic fix #53

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified archetypes/default.md
100644 → 100755
Empty file.
Empty file modified assets/js/script.js
100644 → 100755
Empty file.
Empty file modified assets/scss/_buttons.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/_common.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/_mixins.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/_typography.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/_variables.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/style.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/templates/_main.scss
100644 → 100755
Empty file.
Empty file modified assets/scss/templates/_navigation.scss
100644 → 100755
Empty file.
Empty file modified exampleSite/.hugo_build.lock
100644 → 100755
Empty file.
Empty file modified exampleSite/config.toml
100644 → 100755
Empty file.
Empty file modified exampleSite/content/about/_index.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/_index.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-1.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-10.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-11.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-12.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-13.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-2.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-3.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-4.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-5.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-6.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-7.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-8.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/blog/post-9.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/contact/_index.md
100644 → 100755
Empty file.
Empty file modified exampleSite/content/search/_index.md
100644 → 100755
Empty file.
Empty file modified exampleSite/data/gallery.yml
100644 → 100755
Empty file.
Empty file modified exampleSite/netlify.toml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified exampleSite/static/images/author.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/favicon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/featured-post/post-1.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/featured-post/post-2.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/featured-post/post-3.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/1.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/10.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/11.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/12.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/2.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/3.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/4.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/5.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/6.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/7.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/8.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/gallery/9.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-1.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-2.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-3.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-4.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-5.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/post/post-6.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified exampleSite/static/images/promotion.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/screenshot.png
100644 → 100755
Empty file modified images/tn.png
100644 → 100755
Empty file modified layouts/404.html
100644 → 100755
Empty file.
Empty file modified layouts/_default/baseof.html
100644 → 100755
Empty file.
Empty file modified layouts/_default/index.json
100644 → 100755
Empty file.
Empty file modified layouts/_default/list.html
100644 → 100755
Empty file.
Empty file modified layouts/_default/post.html
100644 → 100755
Empty file.
Empty file modified layouts/_default/single.html
100644 → 100755
Empty file.
Empty file modified layouts/about/list.html
100644 → 100755
Empty file.
Empty file modified layouts/contact/list.html
100644 → 100755
Empty file.
Empty file modified layouts/index.html
100644 → 100755
Empty file.
Empty file modified layouts/partials/footer.html
100644 → 100755
Empty file.
29 changes: 10 additions & 19 deletions layouts/partials/head.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}

<!-- theme meta -->
<meta name="theme-name" content="liva-hugo" />

{{ hugo.Generator }}

{{ "<!-- plugins -->" | safeHTML }}
Expand All @@ -25,21 +21,16 @@
<link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon">
<link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon">

{{ "<!-- google analitycs -->" | safeHTML }}
{{ "<!-- Google tag (gtag.js) -->" | safeHTML }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.googleAnalitycsID }}"></script>
<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>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ .Site.Params.googleAnalitycsID }}');
</script>

</head>


Empty file modified layouts/partials/header.html
100644 → 100755
Empty file.
Empty file modified layouts/partials/preloader.html
100644 → 100755
Empty file.
12 changes: 7 additions & 5 deletions layouts/partials/sidebar.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4 class="widget-title">Category</h4>
<ul class="list-unstyled">
{{- range $name, $items := .Site.Taxonomies.categories }}
<li><a
href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}/">{{ $name | title | humanize }}</a>
href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | title | humanize }}</a>
</li>
{{- end }}
</ul>
Expand All @@ -35,7 +35,7 @@ <h4 class="widget-title">Tag</h4>
<ul class="list-inline">
{{- range $name, $items := .Site.Taxonomies.tags }}
<li class="list-inline-item"><a class="d-block p-2 bg-primary text-white"
href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}/">{{ $name | humanize }}</a></li>
href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | humanize }}</a></li>
{{- end }}
</ul>
{{- end }}
Expand All @@ -51,8 +51,10 @@ <h4 class="widget-title">Social</h4>
</ul>
</div>
<!-- advertisement -->
<div class="widget">
<img src="{{`images/promotion.png` | absURL}}" alt="" class="img-fluid">
</div>
{{ if .Site.Params.promotion.enable}}
<div class="widget">
<img src="{{`images/promotion.png` | absURL}}" alt="" class="img-fluid">
</div>
{{end}}
</div>
</div>
Empty file modified layouts/search/list.html
100644 → 100755
Empty file.
Empty file modified netlify.toml
100644 → 100755
Empty file.
Empty file modified static/.htaccess
100644 → 100755
Empty file.
Empty file modified static/plugins/bootstrap/bootstrap.min.css
100644 → 100755
Empty file.
Empty file modified static/plugins/bootstrap/bootstrap.min.js
100644 → 100755
Empty file.
Empty file modified static/plugins/jQuery/jquery.min.js
100644 → 100755
Empty file.
Empty file modified static/plugins/search/fuse.min.js
100644 → 100755
Empty file.
Empty file modified static/plugins/search/mark.js
100644 → 100755
Empty file.
Empty file modified static/plugins/search/search.js
100644 → 100755
Empty file.
Empty file modified static/plugins/slick/ajax-loader.gif
100644 → 100755
Empty file modified static/plugins/slick/fonts/slick.eot
100644 → 100755
Empty file.
Empty file modified static/plugins/slick/fonts/slick.svg
100644 → 100755
Empty file modified static/plugins/slick/fonts/slick.ttf
100644 → 100755
Empty file.
Empty file modified static/plugins/slick/fonts/slick.woff
100644 → 100755
Empty file.
Empty file modified static/plugins/slick/slick.css
100644 → 100755
Empty file.
Empty file modified static/plugins/slick/slick.min.js
100644 → 100755
Empty file.
Empty file modified static/plugins/themify-icons/fonts/themify.eot
100644 → 100755
Empty file.
Empty file modified static/plugins/themify-icons/fonts/themify.svg
100644 → 100755
Empty file modified static/plugins/themify-icons/fonts/themify.ttf
100644 → 100755
Empty file.
Empty file modified static/plugins/themify-icons/fonts/themify.woff
100644 → 100755
Empty file.
Empty file modified static/plugins/themify-icons/themify-icons.css
100644 → 100755
Empty file.
Empty file modified static/plugins/venobox/venobox.css
100644 → 100755
Empty file.
Empty file modified static/plugins/venobox/venobox.min.js
100644 → 100755
Empty file.
Empty file modified theme.toml
100644 → 100755
Empty file.