Compare commits
No commits in common. "ae707cf5c94050f9ab2f7b624826e44e29eb4870" and "e184d9e2be06ed6f32694312d20508425029ff9c" have entirely different histories.
ae707cf5c9
...
e184d9e2be
@ -1,5 +0,0 @@
|
|||||||
FROM nginx:stable-alpine
|
|
||||||
WORKDIR /var/www/html
|
|
||||||
|
|
||||||
COPY /public /var/www/html
|
|
||||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
@ -1,31 +0,0 @@
|
|||||||
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
|
|
||||||
{{- if not $pc.Disable }}{{ with .Site.Config.Services.GoogleAnalytics.ID -}}
|
|
||||||
{{ if hasPrefix . "G-"}}
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', '{{ . }}', {
|
|
||||||
'anonymize_ip': {{- $pc.AnonymizeIP -}},
|
|
||||||
'user_properties': {
|
|
||||||
'analyticsCookieId': get_ga_clientid()
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function get_ga_clientid() {
|
|
||||||
var cookie = {};
|
|
||||||
document.cookie.split(';').forEach(function(el) {
|
|
||||||
var splitCookie = el.split('=');
|
|
||||||
var key = splitCookie[0].trim();
|
|
||||||
var value = splitCookie[1];
|
|
||||||
cookie[key] = value;
|
|
||||||
});
|
|
||||||
|
|
||||||
if ('undefined' === typeof cookie['_ga']) {return ''};
|
|
||||||
|
|
||||||
return cookie['_ga'].substring(6);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{{- end }}{{ end -}}
|
|
||||||
{{- end -}}
|
|
@ -1,3 +0,0 @@
|
|||||||
server {
|
|
||||||
root /var/www/html;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user