From 20580ecfcec02cf7b209be23c4bf84f2ef9c3af1 Mon Sep 17 00:00:00 2001 From: sonic182 Date: Tue, 29 Mar 2022 23:34:46 +0200 Subject: [PATCH 1/7] static param --- exampleSite/config.yaml | 1 + layouts/_default/baseof.html | 4 ++-- layouts/index.html | 8 ++++---- layouts/partials/head.html | 14 +++++++------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index e0494ab..7a919d6 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -41,6 +41,7 @@ Menus: params: title: "Hugo Profile" description: Text about my cool site + static: "" favicon: "/fav.png" theme: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0e75fb7..e668a5a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,7 +12,7 @@ - + {{- partial "sections/header.html" . -}}
@@ -22,4 +22,4 @@ {{- partial "scripts.html" . -}} - \ No newline at end of file + diff --git a/layouts/index.html b/layouts/index.html index 5806a58..ade2bac 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,10 @@ {{ define "head" }} - - + + - + {{ end }} {{ define "title" }} @@ -19,4 +19,4 @@ {{- partial "sections/projects.html" . -}} {{- partial "sections/achievements.html" . -}} {{- partial "sections/contact.html" . -}} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 305552a..78d73fc 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,7 +11,7 @@ rel="stylesheet"> - + {{ template "_internal/google_analytics_async.html" . }} @@ -19,16 +19,16 @@ {{ template "_internal/twitter_cards.html" . }} - - - + + + - + {{ if .Site.Params.customCSS }} - + {{ end }} \ No newline at end of file + From b10f02eee9af6f6e9dc79218a22134c60cf40a6b Mon Sep 17 00:00:00 2001 From: sonic182 Date: Wed, 30 Mar 2022 07:51:07 +0200 Subject: [PATCH 2/7] optional GPA --- layouts/partials/sections/education.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index ca4f3b5..f2a5f04 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -35,12 +35,14 @@ {{ .school.name }} {{ end }} + {{ if .GPA }}
GPA: {{ .GPA }}
+ {{ end }}
{{ .content | markdownify}}
@@ -61,4 +63,4 @@
-{{ end }} \ No newline at end of file +{{ end }} From 066b43522611a7660e484ce736b0eac28fd2ad1b Mon Sep 17 00:00:00 2001 From: sonic182 Date: Fri, 1 Apr 2022 22:45:54 +0200 Subject: [PATCH 3/7] more fixes theme --- layouts/_default/single.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 720b028..14d9465 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,9 @@ {{ define "head" }} - + - + {{ end }} {{ define "title" }} @@ -115,4 +115,4 @@ } -{{ end }} \ No newline at end of file +{{ end }} From d19515cf851c83c2e37f2aaa3c2fd64ed19afa14 Mon Sep 17 00:00:00 2001 From: sonic182 Date: Fri, 1 Apr 2022 22:47:49 +0200 Subject: [PATCH 4/7] removed console log --- layouts/_default/single.html | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 14d9465..77dea12 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -100,7 +100,6 @@ var topScroll = document.getElementById("topScroll"); window.onscroll = function() {scrollFunction()}; - console.log(topScroll); function scrollFunction() { if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { topScroll.style.display = "block"; From fd19e4981bea9aa61a2fe6a5c5ceeb80bd49f749 Mon Sep 17 00:00:00 2001 From: sonic182 Date: Fri, 1 Apr 2022 23:28:13 +0200 Subject: [PATCH 5/7] fix another link... --- layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5800159..1deb064 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "head" }} - + {{ end }} {{ define "title" }} @@ -36,4 +36,4 @@ -{{ end }} \ No newline at end of file +{{ end }} From 33b0f43282f4fd449ba3bb9c94836cc8e551e114 Mon Sep 17 00:00:00 2001 From: gurusabarish Date: Sat, 2 Apr 2022 23:35:22 +0530 Subject: [PATCH 6/7] Added `ststic` in missed files and renamed to `staticPath` - Added `statics` params in the missed files - Renamed `statics` to `staticPath` --- exampleSite/config.yaml | 45 +++++++++++++++++------------------- layouts/404.html | 2 +- layouts/_default/baseof.html | 4 ++-- layouts/_default/list.html | 4 ++-- layouts/index.html | 8 +++---- layouts/partials/head.html | 12 +++++----- layouts/projects/list.html | 4 ++-- 7 files changed, 38 insertions(+), 41 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 7a919d6..dcd3306 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -41,7 +41,7 @@ Menus: params: title: "Hugo Profile" description: Text about my cool site - static: "" + # staticPath: "" # The path to serve the static files from favicon: "/fav.png" theme: @@ -56,15 +56,15 @@ params: # color preference # color: - # textColor: - # secondaryTextColor: - # backgroundColor: - # secondaryBackgroundColor: - # primaryColor: - # secondaryColor: + # textColor: + # secondaryTextColor: + # backgroundColor: + # secondaryBackgroundColor: + # primaryColor: + # secondaryColor: # darkmode: - # textColor: + # textColor: # secondaryTextColor: # backgroundColor: # secondaryBackgroundColor: @@ -107,15 +107,14 @@ params: - icon: /fav.png url: "https://example.com" - # About about: enable: true title: "About Me" - image: '/images/me.png' + image: "/images/me.png" content: |- I am a software developer with a passion for web development. I have a background in computer science and mathematics, and I have a strong interest in the intersection of technology and art. I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. - + I am currently working on a project that will be used to help people find the best way to get around the city. skills: enable: true @@ -141,7 +140,7 @@ params: name: "View the project" url: "https://example.com" content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." - + - job: "Software Developer" company: "Amazon" companyUrl: "https://example.com" @@ -157,7 +156,7 @@ params: - Lead backend developer for a product. - Created a frontend design for a product. - + - job: "Junior Software Developer" company: "Apple" companyUrl: "https://example.com" @@ -191,7 +190,7 @@ params: companyUrl: "https://example.com" date: "Feb 2016 - Mar 2017" content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." - + # Education education: enable: true @@ -203,7 +202,7 @@ params: url: "https://example.org" date: "2013 - 2015" GPA: "3.8 out of 5.0" - content: |- + content: |- Extracurricular Activities - Lorem ipsum dolor sit amet consectetur adipisicing elit. - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. @@ -217,7 +216,7 @@ params: I Publiced two papers in the ACM SIGCHI Conference on Artificial Intelligence. - [Fast and Accurate Object Detection with a Single Convolutional Neural Network](https://example.com) - Face mask detection using a single convolutional neural network. - + Extracurricular Activities - Lorem ipsum dolor sit amet consectetur adipisicing elit. - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. @@ -233,11 +232,11 @@ params: featuredLink: enable: true url: "https://example.com" - + # Achievements achievements: enable: true - items: + items: - title: Google kickstart runner content: I solved all problems with optimal solution. url: https://example.com @@ -246,7 +245,7 @@ params: - title: Hugo Profile content: Developed a theme and getting 1K+ downloads per month. url: "https://github.com/gurusabarish/hugo-profile" - - title: Microsoft Imagine Runner + - title: Microsoft Imagine Runner content: We are developed a product which can help others. - title: Google Summer of Code content: Contributed to a open source project. @@ -273,9 +272,9 @@ params: url: https://github.com/gurusabarish/hugo-profile - icon: fab fa-twitter url: https://twitter.com/intent/tweet?text=Check+it+out:&url=https%3A%2F%2Fgithub.com%2Fgurusabarish%2Fhugo-profile - + - title: Image Converter - content: A web app to convert image to pdf, png to jpg, png to jpg and png to webp without database using django. + content: A web app to convert image to pdf, png to jpg, png to jpg and png to webp without database using django. image: /images/projects/converter.jpg featured: name: Demo @@ -286,7 +285,7 @@ params: links: - icon: fab fa-github url: https://github.com/gurusabarish/converter - + - title: Hugo Profile V2 content: A clean and simple Hugo template for personal portfolio and blog. image: /images/projects/profile2.jpg @@ -316,5 +315,3 @@ params: twitter: https://twitter.com instagram: https://instagram.com facebook: https://facebook.com - - diff --git a/layouts/404.html b/layouts/404.html index e7c3f39..63104f8 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -8,7 +8,7 @@ {{ define "main" }}
- 404 page not found + 404 page not found

404 Page Not Found

{{ end }} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e668a5a..1caa095 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,7 +12,7 @@ - + {{- partial "sections/header.html" . -}}
@@ -22,4 +22,4 @@ {{- partial "scripts.html" . -}} - + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1deb064..22184bc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "head" }} - + {{ end }} {{ define "title" }} @@ -36,4 +36,4 @@
-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index ade2bac..146fb5b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,10 @@ {{ define "head" }} - - + + - + {{ end }} {{ define "title" }} @@ -19,4 +19,4 @@ {{- partial "sections/projects.html" . -}} {{- partial "sections/achievements.html" . -}} {{- partial "sections/contact.html" . -}} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 78d73fc..e210464 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,7 +11,7 @@ rel="stylesheet"> - + {{ template "_internal/google_analytics_async.html" . }} @@ -19,16 +19,16 @@ {{ template "_internal/twitter_cards.html" . }} - - - + + + - + {{ if .Site.Params.customCSS }} - + {{ end }}