From 9c45815cdf84df240cb118db1e35719c50a0b39a Mon Sep 17 00:00:00 2001 From: Sharwin Patil Date: Wed, 1 Jan 2025 20:13:49 -0800 Subject: [PATCH] Enabled home page and reduced landing page's image size --- assets/styles/sections/home.scss | 2 +- data/en/author.yaml | 15 ++++++++------- hugo.yaml | 2 ++ layouts/index.html | 2 +- layouts/partials/helpers/get-esbuild-options.html | 4 +--- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/assets/styles/sections/home.scss b/assets/styles/sections/home.scss index 7be7c7d..2faecdb 100644 --- a/assets/styles/sections/home.scss +++ b/assets/styles/sections/home.scss @@ -1,5 +1,5 @@ .home { - height: 100vh; + height: 70vh; padding: 0; margin: 0; color: get-light-color('text-over-accent-color'); diff --git a/data/en/author.yaml b/data/en/author.yaml index 07a60b9..26dedb5 100644 --- a/data/en/author.yaml +++ b/data/en/author.yaml @@ -1,9 +1,10 @@ # some information about you name: "Sharwin Patil" -# nickname: "Sharwin" +nickname: "Sharwin" # greeting message before your name. it will default to "Hi! I am" if not provided -# greeting: "Hey I'm" -# image: "images/author/sharwin_portrait.jpg" +greeting: "Hey! I'm" +subtitle: "Currently pursuing a Master's in Robotics at Northwestern University" +image: "images/sharwin_portrait.jpg" # give your some contact information. they will be used in the footer contactInfo: email: "sharwin24@gmail.com" @@ -13,7 +14,7 @@ contactInfo: # researchgate: john-doe # some summary about what you do -# summary: -# - a Software Developer -# - an Open Source Contributor -# - a Roboticist \ No newline at end of file +summary: +- a Roboticist +- a Software Developer +- an Open Source Contributor \ No newline at end of file diff --git a/hugo.yaml b/hugo.yaml index 2493789..04e9519 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -33,6 +33,8 @@ module: # Site parameters params: + # Background image of the landing page + background: /images/kavar_background.jpg # Provide logos for your site. The inverted logo will be used in the initial # transparent navbar and the main logo will be used in the non-transparent navbar. logo: diff --git a/layouts/index.html b/layouts/index.html index 70767e7..23f5710 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -31,7 +31,7 @@ {{- partial "navigators/navbar.html" . -}} - + {{- partial "sections/home.html" . -}} {{ $sections:= site.Data.sections }} diff --git a/layouts/partials/helpers/get-esbuild-options.html b/layouts/partials/helpers/get-esbuild-options.html index af9eed9..c2b18d0 100644 --- a/layouts/partials/helpers/get-esbuild-options.html +++ b/layouts/partials/helpers/get-esbuild-options.html @@ -146,9 +146,7 @@ namespaced by their corresponding feature. {{ $params := dict }} {{/* set NODE_ENV depending on if we are building for production use. */}} -{{ $defines = $defines | merge (dict - "process.env.NODE_ENV" (cond hugo.IsProduction `"production"` `"development"` ) -)}} +{{ $defines = $defines | merge (dict "process.env.NODE_ENV" (cond hugo.IsProduction `"production"` `"development"` ))}} {{/* Go through each feature defined in our config.yml/config.toml/config.json file. */}} {{ range $feature, $featureDef := site.Params.features }}