google analytics and disqus

This commit is contained in:
gurusabarish
2020-09-23 13:29:44 +05:30
parent b4294b0cc9
commit b4681b5856
6 changed files with 77 additions and 4 deletions
+3
View File
@@ -6,6 +6,9 @@ title: "Hugo-profile"
params: params:
favicon: "/images/hugo.png" favicon: "/images/hugo.png"
description: "Portfolio and personal blog of gurusabarish" description: "Portfolio and personal blog of gurusabarish"
googleanalytics: ""
disqus: ""
contact: "false"
# Navbar Menus # Navbar Menus
customMenus: customMenus:
+5
View File
@@ -1,10 +1,15 @@
baseURL: "https://example.com" baseURL: "https://example.com"
languageCode: "en-us" languageCode: "en-us"
title: "Hugo-profile" title: "Hugo-profile"
theme: "hugo-profile"
params: params:
favicon: "/images/hugo.png" favicon: "/images/hugo.png"
description: "Portfolio and personal blog of gurusabarish" description: "Portfolio and personal blog of gurusabarish"
googleanalytics: ""
disqus: ""
contact: "false"
# Navbar Menus # Navbar Menus
customMenus: customMenus:
+21 -1
View File
@@ -71,7 +71,27 @@
{{ end }} {{ end }}
</div> </div>
<br> <br>
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function () { // DON'T EDIT BELOW THIS LINE
var d = document,
s = d.createElement('script');
s.src = '{{ .Site.Params.disqus }}';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
</div> </div>
</div> </div>
</div> </div>
+13
View File
@@ -10,3 +10,16 @@
<!-- Fonts --> <!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-167646412-7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ .Site.Params.googleanalytics }}');
</script>
+26
View File
@@ -1,3 +1,29 @@
{{ if eq .Site.Params.contact "true"}}
<section> <section>
<div class="contact bg-danger text-white">
<div class="text-center p-3 font-weight-bold contact-head">Get In Tough</div>
<div class="p-3 container">
<div class="row justify-content-center">
<div class="col-lg-7">
<form action="https://formspree.io/xzbkbvgg" method="POST">
<div class="form-group">
<label for="exampleFormControlInput1">Email</label>
<input type="email" class="form-control" id="exampleFormControlInput1"
placeholder="[email protected]" name="Gmail">
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Message</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="message"
placeholder="Type something"></textarea>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section> </section>
{{ end }}
+7 -1
View File
@@ -17,7 +17,7 @@
.name-intro { .name-intro {
font-size: 20PX; font-size: 20PX;
padding-top: 10%; padding-top: 10%;
padding-left: 20%; padding-left: 17%;
} }
.profile { .profile {
@@ -185,3 +185,9 @@
.post-hover :hover { .post-hover :hover {
background-color: #17a2b8; background-color: #17a2b8;
} }
/* contact */
.contact-head {
font-family: 'Alata', sans-serif;
font-size: 25px;
}