Merge branch 'gurusabarish:master' into master
This commit is contained in:
+36
-38
@@ -11,10 +11,10 @@ outputs:
|
|||||||
page:
|
page:
|
||||||
- "HTML"
|
- "HTML"
|
||||||
- "RSS"
|
- "RSS"
|
||||||
|
|
||||||
Paginate: 3
|
Paginate: 3
|
||||||
disqusShortname: gurusabarish
|
disqusShortname: gurusabarish
|
||||||
googleAnalytics: G-DWJJVE27WD
|
enableRobotsTXT: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
@@ -28,13 +28,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
|
||||||
@@ -74,13 +72,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:
|
||||||
@@ -100,19 +98,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:
|
||||||
@@ -127,7 +124,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
|
||||||
@@ -227,7 +224,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:
|
||||||
@@ -296,10 +293,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
|
||||||
@@ -314,9 +311,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
|
||||||
@@ -327,10 +324,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
|
||||||
@@ -338,17 +335,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: [email protected]
|
email: [email protected]
|
||||||
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
|
||||||
|
|||||||
@@ -24,7 +24,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 }}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[build]
|
[build]
|
||||||
publish = "exampleSite/public"
|
publish = "exampleSite/public"
|
||||||
command = "cd exampleSite && hugo --gc --minify --themesDir ../.."
|
command = 'cd exampleSite && echo -e "\ngoogleAnalytics: $GOOGLE_ANALYTICS \n" >> config.yaml && hugo --gc --minify --themesDir ../..'
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.92.0"
|
HUGO_VERSION = "0.92.0"
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ li > .dropdown-toggle:focus{
|
|||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
#search-content {
|
#search-content {
|
||||||
|
-ms-scroll-chaining: none;
|
||||||
|
scrollbar-width: none;
|
||||||
display: none;
|
display: none;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
||||||
@@ -81,6 +83,10 @@ li > .dropdown-toggle:focus{
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#search-content::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#search-results > .card {
|
#search-results > .card {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
+28
-5
@@ -19,11 +19,34 @@ async function searchOnChange(evt) {
|
|||||||
|
|
||||||
let searchJson = await fetch("/index.json").then((res) => res.json());
|
let searchJson = await fetch("/index.json").then((res) => res.json());
|
||||||
let searchResults = searchJson.filter((item) => {
|
let searchResults = searchJson.filter((item) => {
|
||||||
return (
|
let res = false;
|
||||||
item.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
if (item.title && item.description && item.content) {
|
||||||
item.description.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
res =
|
||||||
item.content.toLowerCase().includes(searchQuery.toLowerCase())
|
item.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
);
|
item.description.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
|
item.content.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.title && item.description) {
|
||||||
|
res =
|
||||||
|
item.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
|
item.description.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.title && item.content) {
|
||||||
|
res =
|
||||||
|
item.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
|
item.content.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.description && item.content) {
|
||||||
|
res =
|
||||||
|
item.description.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
|
item.content.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.title) {
|
||||||
|
res = item.title.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.description) {
|
||||||
|
res = item.description
|
||||||
|
.toLowerCase()
|
||||||
|
.includes(searchQuery.toLowerCase());
|
||||||
|
} else if (item.content) {
|
||||||
|
res = item.content.toLowerCase().includes(searchQuery.toLowerCase());
|
||||||
|
}
|
||||||
|
return res;
|
||||||
});
|
});
|
||||||
if (searchResults.length > 0) {
|
if (searchResults.length > 0) {
|
||||||
let searchResultsHtml = "";
|
let searchResultsHtml = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user