diff --git a/.gitignore b/.gitignore index 8c12507..700de0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode/ node_modules/ .DS_Store -.history/ \ No newline at end of file +.history/ +resources/ \ No newline at end of file diff --git a/exampleSite/static/images/sections/achievements/graduation-cap.jpg b/exampleSite/static/images/sections/achievements/graduation-cap.jpg deleted file mode 100644 index 0bbdc9c..0000000 Binary files a/exampleSite/static/images/sections/achievements/graduation-cap.jpg and /dev/null differ diff --git a/exampleSite/static/images/sections/projects/tensorflow.png b/exampleSite/static/images/sections/projects/tensorflow.png deleted file mode 100644 index 5a11bda..0000000 Binary files a/exampleSite/static/images/sections/projects/tensorflow.png and /dev/null differ diff --git a/exampleSite/static/images/sections/skills/cloud.png b/exampleSite/static/images/sections/skills/cloud.png deleted file mode 100644 index 900bb85..0000000 Binary files a/exampleSite/static/images/sections/skills/cloud.png and /dev/null differ diff --git a/exampleSite/static/images/sections/skills/docker.svg b/exampleSite/static/images/sections/skills/docker.svg deleted file mode 100644 index 4242689..0000000 --- a/exampleSite/static/images/sections/skills/docker.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/exampleSite/static/images/sections/skills/linux.png b/exampleSite/static/images/sections/skills/linux.png deleted file mode 100644 index bda094c..0000000 Binary files a/exampleSite/static/images/sections/skills/linux.png and /dev/null differ diff --git a/exampleSite/static/images/site/background.jpg b/exampleSite/static/images/site/background.jpg deleted file mode 100644 index 59470ae..0000000 Binary files a/exampleSite/static/images/site/background.jpg and /dev/null differ diff --git a/layouts/404.html b/layouts/404.html index 02ff71b..6b37386 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -13,7 +13,7 @@ {{/* resize the image. don't resize svg because it is not supported */}} {{ $notFoundImage := resources.Get $notFoundImage}} {{ if and $notFoundImage (ne $notFoundImage.MediaType.SubType "svg") }} - {{ $notFoundImage = $notFoundImage.Resize "42x" }} + {{ $notFoundImage = $notFoundImage.Resize "1500x" }} {{ end }} {{ $notFoundImage = $notFoundImage.RelPermalink}} diff --git a/layouts/partials/helpers/get-author-image.html b/layouts/partials/helpers/get-author-image.html index b02ac64..439bafc 100644 --- a/layouts/partials/helpers/get-author-image.html +++ b/layouts/partials/helpers/get-author-image.html @@ -2,11 +2,14 @@ {{ if (index site.Data site.Language.Lang).author }} {{ $author = (index site.Data site.Language.Lang).author }} {{ end }} + +{{/* default author image */}} {{ $authorImage:= "/images/default-avatar.png" }} {{ if $author.image }} {{ $authorImage = $author.image }} {{ end }} +{{/* if author image is provided in author's data, then use that */}} {{ if eq (printf "%T" .Params.author ) "maps.Params" }} {{ with .Params.author }} {{ if .image }} @@ -14,9 +17,13 @@ {{ end }} {{ end }} {{ end }} + +{{/* apply image processing. don't use "Fit" in svg because its not supported */}} {{ $authorImage:= resources.Get $authorImage}} -{{ if $authorImage }} -{{ $authorImage := $authorImage.Fit "120x120" }} -{{ return $authorImage.RelPermalink }} +{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }} + {{ $authorImage := $authorImage.Fit "120x120" }} {{ end }} +{{/* return the author image link */}} +{{ return $authorImage.RelPermalink }} + diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html index ab6aa61..0a10d0a 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -4,7 +4,7 @@ {{/* if hero image is not provided, then use the default hero image */}} {{ if not $heroImage }} - {{ $heroImage:= resources.Get "images/default-hero.jpg"}} + {{ $heroImage := resources.Get "images/default-hero.jpg"}} {{ .Scratch.Set "heroScratch" $heroImage }} {{ end }} diff --git a/layouts/partials/navigators/navbar-2.html b/layouts/partials/navigators/navbar-2.html index 856486c..40e83b5 100644 --- a/layouts/partials/navigators/navbar-2.html +++ b/layouts/partials/navigators/navbar-2.html @@ -1,22 +1,28 @@ -{{ $mainLogo:="/images/main-logo.png" }} -{{ $invertedLogo:="/images/inverted-logo.png" }} +{{/* default logos */}} +{{ $mainLogo := "/images/main-logo.png" }} +{{ $invertedLogo := "/images/inverted-logo.png" }} + +{{/* if custom logo has been provided in the config file, then use them */}} {{ if site.Params.logo.main }} {{ $mainLogo = site.Params.logo.main }} {{ end }} + {{ if site.Params.logo.inverted }} {{ $invertedLogo = site.Params.logo.inverted }} {{ end }} -{{ $mainLogo:= resources.Get $mainLogo}} -{{ if $mainLogo }} -{{ $mainLogo = $mainLogo.Resize "42x" }} + +{{/* resize the logos. don't resize svg because it is not supported */}} +{{ $mainLogo := resources.Get $mainLogo}} +{{ if and $mainLogo (ne $mainLogo.MediaType.SubType "svg") }} + {{ $mainLogo = $mainLogo.Resize "42x" }} +{{ end }} {{ $mainLogo = $mainLogo.RelPermalink}} +{{ $invertedLogo := resources.Get $invertedLogo}} +{{ if and $invertedLogo (ne $invertedLogo.MediaType.SubType "svg") }} + {{ $invertedLogo = $invertedLogo.Resize "42x" }} {{ end }} -{{ $invertedLogo:= resources.Get $invertedLogo}} -{{ if $invertedLogo }} -{{ $invertedLogo = $invertedLogo.Resize "42x" }} {{ $invertedLogo = $invertedLogo.RelPermalink}} -{{ end }}