google analutics fix and implemented #82
This commit is contained in:
+34
-35
@@ -15,6 +15,7 @@ outputs:
|
|||||||
Paginate: 3
|
Paginate: 3
|
||||||
disqusShortname: gurusabarish
|
disqusShortname: gurusabarish
|
||||||
googleAnalytics: G-DWJJVE27WD
|
googleAnalytics: G-DWJJVE27WD
|
||||||
|
enableRobotsTXT: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
@@ -28,13 +29,11 @@ Menus:
|
|||||||
title: Blog posts
|
title: Blog posts
|
||||||
url: /blogs
|
url: /blogs
|
||||||
weight: 1
|
weight: 1
|
||||||
|
|
||||||
- identifier: gallery
|
- identifier: gallery
|
||||||
name: Gallery
|
name: Gallery
|
||||||
title: Blog posts
|
title: Blog posts
|
||||||
url: /gallery
|
url: /gallery
|
||||||
weight: 2
|
weight: 2
|
||||||
|
|
||||||
#Dropdown menu
|
#Dropdown menu
|
||||||
# - identifier: dropdown
|
# - identifier: dropdown
|
||||||
# title: Example dropdown menu
|
# title: Example dropdown menu
|
||||||
@@ -69,13 +68,13 @@ params:
|
|||||||
|
|
||||||
theme:
|
theme:
|
||||||
disableThemeToggle: false
|
disableThemeToggle: false
|
||||||
# defaultTheme: "light" # dark
|
defaultTheme: "light" # dark
|
||||||
|
|
||||||
# font:
|
font:
|
||||||
# fontSize: 1.5rem # default: 1rem
|
fontSize: 1rem # default: 1rem
|
||||||
# fontWeight: 500 # default: 400
|
fontWeight: 400 # default: 400
|
||||||
# lineHeight: 1 # default: 1.5
|
lineHeight: 1.5 # default: 1.5
|
||||||
# textAlign: right # default: left
|
textAlign: left # default: left
|
||||||
|
|
||||||
# color preference
|
# color preference
|
||||||
# color:
|
# color:
|
||||||
@@ -95,19 +94,18 @@ params:
|
|||||||
# secondaryColor:
|
# secondaryColor:
|
||||||
|
|
||||||
# If you want to customize the menu, you can change it here
|
# If you want to customize the menu, you can change it here
|
||||||
# navbar:
|
navbar:
|
||||||
# align: mx-auto # Left: ms-auto | center: mx-auto | right: me-auto | Default: ms-auto
|
align: ms-auto # Left: ms-auto | center: mx-auto | right: me-auto | Default: ms-auto
|
||||||
# brandLogo: "/logo.png" # Logo for the brand | default is the favicon variable
|
# brandLogo: "/logo.png" # Logo for the brand | default is the favicon variable
|
||||||
# brandName: "Profile" # Brand name for the brand | default is the title variable
|
brandName: "Hugo Profile" # Brand name for the brand | default is the title variable
|
||||||
# disableSearch: true
|
disableSearch: false
|
||||||
|
menus:
|
||||||
# menus:
|
disableAbout: false
|
||||||
# disableAbout: true
|
disableExperience: false
|
||||||
# disableExperience: true
|
disableEducation: false
|
||||||
# disableEducation: true
|
disableProjects: false
|
||||||
# disableProjects: true
|
disableAchievements: false
|
||||||
# disableAchievements: true
|
disableContact: false
|
||||||
# disableContact: true
|
|
||||||
|
|
||||||
# Hero
|
# Hero
|
||||||
hero:
|
hero:
|
||||||
@@ -122,7 +120,7 @@ params:
|
|||||||
name: "Resume"
|
name: "Resume"
|
||||||
url: "#"
|
url: "#"
|
||||||
download: true
|
download: true
|
||||||
newPage: true
|
newPage: false
|
||||||
socialLinks:
|
socialLinks:
|
||||||
fontAwesomeIcons:
|
fontAwesomeIcons:
|
||||||
- icon: fab fa-github
|
- icon: fab fa-github
|
||||||
@@ -222,7 +220,7 @@ params:
|
|||||||
education:
|
education:
|
||||||
enable: true
|
enable: true
|
||||||
# title: "Custom Name"
|
# title: "Custom Name"
|
||||||
# index: true
|
index: false
|
||||||
items:
|
items:
|
||||||
- title: "Master of Business Administration"
|
- title: "Master of Business Administration"
|
||||||
school:
|
school:
|
||||||
@@ -291,10 +289,10 @@ params:
|
|||||||
featured:
|
featured:
|
||||||
name: Demo
|
name: Demo
|
||||||
link: https://hugo-profile.netlify.app
|
link: https://hugo-profile.netlify.app
|
||||||
# badges:
|
badges:
|
||||||
# - "Hugo"
|
- "Hugo"
|
||||||
# - "Bootstrap"
|
- "Bootstrap"
|
||||||
# - "Javascript"
|
- "Javascript"
|
||||||
links:
|
links:
|
||||||
- icon: fa fa-envelope
|
- icon: fa fa-envelope
|
||||||
url: mailto:?subject=Hugo%20Profile%20Template&body=Check%20it%20out:%20https%3a%2f%2fhugo-profile.netlify.app%2fblog%2fmarkdown-syntax%2f
|
url: mailto:?subject=Hugo%20Profile%20Template&body=Check%20it%20out:%20https%3a%2f%2fhugo-profile.netlify.app%2fblog%2fmarkdown-syntax%2f
|
||||||
@@ -309,9 +307,9 @@ params:
|
|||||||
featured:
|
featured:
|
||||||
name: Demo
|
name: Demo
|
||||||
link: https://django-converter.herokuapp.com
|
link: https://django-converter.herokuapp.com
|
||||||
# badges:
|
badges:
|
||||||
# - "Django"
|
- "Django"
|
||||||
# - "Bootstrap"
|
- "Bootstrap"
|
||||||
links:
|
links:
|
||||||
- icon: fab fa-github
|
- icon: fab fa-github
|
||||||
url: https://github.com/gurusabarish/converter
|
url: https://github.com/gurusabarish/converter
|
||||||
@@ -322,10 +320,10 @@ params:
|
|||||||
featured:
|
featured:
|
||||||
name: Demo V2
|
name: Demo V2
|
||||||
link: https://hugo-profile-2.netlify.app
|
link: https://hugo-profile-2.netlify.app
|
||||||
# badges:
|
badges:
|
||||||
# - "Hugo"
|
- "Hugo"
|
||||||
# - "Bootstrap"
|
- "Bootstrap"
|
||||||
# - "Javascript"
|
- "Javascript"
|
||||||
links:
|
links:
|
||||||
- icon: fab fa-github
|
- icon: fab fa-github
|
||||||
url: https://github.com/gurusabarish/HugoProfileV2
|
url: https://github.com/gurusabarish/HugoProfileV2
|
||||||
@@ -333,17 +331,18 @@ params:
|
|||||||
#Contact
|
#Contact
|
||||||
contact:
|
contact:
|
||||||
enable: true
|
enable: true
|
||||||
#title: "Custom name"
|
# title: "Custom Name"
|
||||||
content: My inbox is always open. Whether you have a question or just want to say hi, I’ll try my best to get back to you!
|
content: My inbox is always open. Whether you have a question or just want to say hi, I’ll try my best to get back to you!
|
||||||
email: gurusabarisha@gmail.com
|
email: gurusabarisha@gmail.com
|
||||||
btnName: Mail me
|
btnName: Mail me
|
||||||
|
|
||||||
footer:
|
footer:
|
||||||
recentPosts:
|
recentPosts:
|
||||||
|
path: "blogs"
|
||||||
|
count: 3
|
||||||
title: Recent Posts
|
title: Recent Posts
|
||||||
enable: true
|
enable: true
|
||||||
disableFeaturedImage: false
|
disableFeaturedImage: false
|
||||||
|
|
||||||
socialNetworks:
|
socialNetworks:
|
||||||
github: https://github.com
|
github: https://github.com
|
||||||
linkedin: https://linkedin.com
|
linkedin: https://linkedin.com
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/font.css" media="all">
|
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/font.css" media="all">
|
||||||
|
|
||||||
<!-- Internal templates -->
|
<!-- Internal templates -->
|
||||||
{{ template "_internal/google_analytics_async.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ template "_internal/opengraph.html" . }}
|
{{ template "_internal/opengraph.html" . }}
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
<div class="container py-3" id="recent-posts">
|
<div class="container py-3" id="recent-posts">
|
||||||
{{ if .Site.Params.footer.recentPosts.enable | default false }}
|
{{ if .Site.Params.footer.recentPosts.enable | default false }}
|
||||||
|
{{ $recentPostsPath := .Site.Params.footer.recentPosts.path | default "blogs" }}
|
||||||
|
{{ $recentPostsCount := .Site.Params.footer.recentPosts.count | default 3 }}
|
||||||
|
{{ $recentPosts := where .Site.RegularPages "Section" $recentPostsPath | first $recentPostsCount }}
|
||||||
<div class="h3 text-center text-secondary py-3">
|
<div class="h3 text-center text-secondary py-3">
|
||||||
{{ .Site.Params.footer.recentPosts.title | default "Recent Posts" }}
|
{{ .Site.Params.footer.recentPosts.title | default "Recent Posts" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
{{ range ( where .Site.RegularPages "Type" "blogs" | first 3 ) }}
|
{{ range $recentPosts }}
|
||||||
<div class="col-lg-4 col-md-6 pt-2">
|
<div class="col-lg-4 col-md-6 pt-2">
|
||||||
<div class="card h-100">
|
<div class="card h-100">
|
||||||
{{ if and (not (.Site.Params.footer.recentPosts.disableFeaturedImage | default false)) (.Params.image) }}
|
{{ if and (not (.Site.Params.footer.recentPosts.disableFeaturedImage | default false)) (.Params.image) }}
|
||||||
|
|||||||
@@ -65,42 +65,54 @@
|
|||||||
|
|
||||||
{{ if and (.Site.Params.about.enable | default false) (not (.Site.Params.navbar.menus.disableAbout | default false)) }}
|
{{ if and (.Site.Params.about.enable | default false) (not (.Site.Params.navbar.menus.disableAbout | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#about" aria-label="about">About</a>
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#about" aria-label="about">
|
||||||
|
{{ .Site.Params.about.title | default "About" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Site.Params.experience.enable | default false) (not (.Site.Params.navbar.menus.disableExperience | default false)) }}
|
{{ if and (.Site.Params.experience.enable | default false) (not (.Site.Params.navbar.menus.disableExperience | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#experience"
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#experience"
|
||||||
aria-label="experience">Experience</a>
|
aria-label="experience">
|
||||||
|
{{ .Site.Params.experience.title | default "Experience" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Site.Params.education.enable | default false) (not (.Site.Params.navbar.menus.disableEducation | default false)) }}
|
{{ if and (.Site.Params.education.enable | default false) (not (.Site.Params.navbar.menus.disableEducation | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#education"
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#education"
|
||||||
aria-label="education">Education</a>
|
aria-label="education">
|
||||||
|
{{ .Site.Params.education.title | default "Education" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Site.Params.projects.enable | default false) (not (.Site.Params.navbar.menus.disableEducation | default false)) }}
|
{{ if and (.Site.Params.projects.enable | default false) (not (.Site.Params.navbar.menus.disableEducation | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#projects"
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#projects"
|
||||||
aria-label="projects">Projects</a>
|
aria-label="projects">
|
||||||
|
{{ .Site.Params.projects.title | default "Projects" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Site.Params.achievements.enable | default false) (not (.Site.Params.navbar.menus.disableAchievements | default false)) }}
|
{{ if and (.Site.Params.achievements.enable | default false) (not (.Site.Params.navbar.menus.disableAchievements | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#achievements"
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#achievements"
|
||||||
aria-label="achievements">Achievements</a>
|
aria-label="achievements">
|
||||||
|
{{ .Site.Params.achievements.title | default "Achievements" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Site.Params.contact.enable | default false) (not (.Site.Params.navbar.menus.disableContact | default false)) }}
|
{{ if and (.Site.Params.contact.enable | default false) (not (.Site.Params.navbar.menus.disableContact | default false)) }}
|
||||||
<li class="nav-item navbar-text">
|
<li class="nav-item navbar-text">
|
||||||
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#contact"
|
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#contact"
|
||||||
aria-label="contact">Contact</a>
|
aria-label="contact">
|
||||||
|
{{ .Site.Params.contact.title | default "Contact" }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user