From dbd270eaeec835bb049580423c171f9bf2e51da7 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Tue, 2 Jun 2020 03:59:39 +0600 Subject: [PATCH] Make theme compatible with hugoBasicExamples Signed-off-by: hossainemruz --- data/achievements.yaml | 30 ++-- data/experiences.yaml | 62 +++----- data/home.yaml | 12 -- data/projects.yaml | 72 ++++----- data/site.yaml | 40 +++++ layouts/_default/single.html | 6 +- layouts/partials/footer.html | 10 +- layouts/partials/header.html | 2 +- .../partials/helpers/get-author-image.html | 8 +- layouts/partials/helpers/get-author-name.html | 8 +- layouts/partials/helpers/get-categories.html | 4 +- layouts/partials/helpers/get-hero.html | 4 +- .../partials/helpers/get-profile-image.html | 5 - layouts/partials/home.html | 8 +- layouts/partials/navbar-2.html | 2 +- layouts/partials/navbar.html | 6 +- layouts/partials/projects.html | 4 +- layouts/partials/recent-posts.html | 6 +- static/assets/css/achievements.css | 1 + static/assets/css/style.css | 2 +- static/assets/files/resume.pdf | Bin 1132520 -> 126053 bytes static/assets/images/achievements/1.jpg | Bin 24009 -> 0 bytes static/assets/images/achievements/2.jpg | Bin 63415 -> 0 bytes static/assets/images/achievements/3.jpg | Bin 50634 -> 0 bytes static/assets/images/achievements/4.jpg | Bin 63130 -> 0 bytes static/assets/images/achievements/5.jpg | Bin 37998 -> 0 bytes static/assets/images/achievements/6.jpg | Bin 64373 -> 0 bytes static/assets/images/achievements/7.jpg | Bin 4227763 -> 0 bytes static/assets/images/achievements/8.jpg | Bin 8693534 -> 0 bytes .../images/achievements/graduation-cap.jpg | Bin 0 -> 394380 bytes .../assets/images/achievements/presenter.jpg | Bin 0 -> 99571 bytes static/assets/images/achievements/sport.jpg | Bin 0 -> 145663 bytes .../images/achievements/woman-winner.jpg | Bin 0 -> 89921 bytes static/assets/images/background/bird.jpg | Bin 344180 -> 0 bytes static/assets/images/background/flower.jpg | Bin 1462006 -> 0 bytes .../images/background/sunrise-mountain.jpg | Bin 2041259 -> 0 bytes static/assets/images/background/sunrise.jpg | Bin 3146344 -> 0 bytes static/assets/images/{logos => }/favicon.png | Bin .../images/{logos => }/hugo-logo-wide.svg | 0 .../images/{logos => }/logo-inverted.png | Bin static/assets/images/{logos => }/logo.png | Bin static/assets/images/logos/kubed.png | Bin 13192 -> 0 bytes static/assets/images/logos/kubedb.png | Bin 12255 -> 0 bytes static/assets/images/logos/panda.png | Bin 180851 -> 0 bytes static/assets/images/logos/penguin.svg | 22 --- .../assets/images/logos/project-default.png | Bin 11690 -> 0 bytes static/assets/images/logos/raccoon.svg | 75 --------- static/assets/images/logos/sea-turtle.svg | 147 ------------------ static/assets/images/logos/stash.png | Bin 16239 -> 0 bytes .../{recent-posts => projects}/kubernetes.png | Bin static/assets/images/projects/no-code.png | Bin 0 -> 52312 bytes static/assets/images/projects/tensorflow.png | Bin 0 -> 6965 bytes .../assets/images/recent-posts/docker-2.png | Bin 4205 -> 0 bytes static/assets/images/recent-posts/docker.svg | 1 - static/assets/images/skills/cloud-icon.png | Bin 69300 -> 0 bytes static/assets/images/skills/docker.png | Bin 4205 -> 0 bytes static/assets/images/skills/gopher.png | Bin 287485 -> 0 bytes static/assets/js/home.js | 2 +- static/assets/js/list.js | 1 - static/assets/js/navbar.js | 4 +- 60 files changed, 150 insertions(+), 394 deletions(-) delete mode 100644 data/home.yaml create mode 100644 data/site.yaml delete mode 100644 layouts/partials/helpers/get-profile-image.html delete mode 100644 static/assets/images/achievements/1.jpg delete mode 100644 static/assets/images/achievements/2.jpg delete mode 100644 static/assets/images/achievements/3.jpg delete mode 100644 static/assets/images/achievements/4.jpg delete mode 100644 static/assets/images/achievements/5.jpg delete mode 100644 static/assets/images/achievements/6.jpg delete mode 100644 static/assets/images/achievements/7.jpg delete mode 100644 static/assets/images/achievements/8.jpg create mode 100644 static/assets/images/achievements/graduation-cap.jpg create mode 100644 static/assets/images/achievements/presenter.jpg create mode 100644 static/assets/images/achievements/sport.jpg create mode 100644 static/assets/images/achievements/woman-winner.jpg delete mode 100644 static/assets/images/background/bird.jpg delete mode 100644 static/assets/images/background/flower.jpg delete mode 100644 static/assets/images/background/sunrise-mountain.jpg delete mode 100644 static/assets/images/background/sunrise.jpg rename static/assets/images/{logos => }/favicon.png (100%) rename static/assets/images/{logos => }/hugo-logo-wide.svg (100%) rename static/assets/images/{logos => }/logo-inverted.png (100%) rename static/assets/images/{logos => }/logo.png (100%) delete mode 100644 static/assets/images/logos/kubed.png delete mode 100644 static/assets/images/logos/kubedb.png delete mode 100644 static/assets/images/logos/panda.png delete mode 100644 static/assets/images/logos/penguin.svg delete mode 100644 static/assets/images/logos/project-default.png delete mode 100644 static/assets/images/logos/raccoon.svg delete mode 100644 static/assets/images/logos/sea-turtle.svg delete mode 100644 static/assets/images/logos/stash.png rename static/assets/images/{recent-posts => projects}/kubernetes.png (100%) create mode 100644 static/assets/images/projects/no-code.png create mode 100644 static/assets/images/projects/tensorflow.png delete mode 100644 static/assets/images/recent-posts/docker-2.png delete mode 100644 static/assets/images/recent-posts/docker.svg delete mode 100644 static/assets/images/skills/cloud-icon.png delete mode 100644 static/assets/images/skills/docker.png delete mode 100644 static/assets/images/skills/gopher.png diff --git a/data/achievements.yaml b/data/achievements.yaml index 6dfa2a6..7730b55 100644 --- a/data/achievements.yaml +++ b/data/achievements.yaml @@ -1,26 +1,14 @@ -# my achievements +# Your achievements achievements achievements: - - title: UAP IUPC 2017 - image: assets/images/achievements/1.jpg + - title: Best Presenter + image: assets/images/achievements/presenter.jpg summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/2.jpg + - title: Champion + image: assets/images/achievements/sport.jpg summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/3.jpg + - title: Graduation + image: assets/images/achievements/graduation-cap.jpg summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/4.jpg - summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/5.jpg - summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/6.jpg - summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/7.jpg - summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? - - title: UAP IUPC 2017 - image: assets/images/achievements/8.jpg + - title: Award Winner + image: assets/images/achievements/woman-winner.jpg summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? diff --git a/data/experiences.yaml b/data/experiences.yaml index e164df7..c9c23ac 100644 --- a/data/experiences.yaml +++ b/data/experiences.yaml @@ -13,45 +13,31 @@ experiences: # give some points about what was your responsibilities at the company. responsibilities: - Design, develop and manage disaster recovery tool Stash that backup Kubernetes volumes, databases and cluster's resource definition. - - My another respons - - Added support for Prometheus monitoring in various AppsCode's tools. - - Provide support to the users of our various tools. + - My another responsibilities. + - My more responsibilities. + + - designation: Software Engineer + company: + name: PreExample Co. + url: "https://www.preexample.com" + location: Nowhere + overview: PreExample Co. is gateway company to enter into Example co. So, nothing special here. + start: March 2016 + end: May 2017 + responsibilities: + - Write lots of example codes. + - Read lots of examples. + - See lots of example videos. - designation: Intern company: - name: AppCode Inc. - url: "https://www.appscode.com" - location: Dhaka Branch - overview: AppsCode Ltd. is a subsidiary company of AppsCode Inc. USA. An Integrated platform for collaborative coding, testing & deploying containerized apps. - start: March 2016 - end: May 2016 + name: Intern Counting Company (ICC). + url: "https://www.intern.com" + location: Intern Land + overview: Intern counting Company (ICC) is responsible for counting worldwide intern Engineer. + start: Jun 2015 + end: Jan 2016 responsibilities: - - Design, develop and test a sample library website. - - Learn git version control. - - Learn backbone.js framework. - - - designation: Demo 1 - company: - name: Demo Co. - url: "https://www.appscode.com" - location: Dhaka Branch - overview: this is a demo company. - start: March 2016 - end: May 2016 - responsibilities: - - Design, develop and test a sample library website. - - Learn git version control. - - Learn backbone.js framework. - - - designation: Demo 2 - company: - name: Demo Co. - url: "https://www.appscode.com" - location: Dhaka Branch - overview: this is a demo company. - start: March 2016 - end: May 2016 - responsibilities: - - Design, develop and test a sample library website. - - Learn git version control. - - Learn backbone.js framework. + - Count lost of interns. + - Count more interns. + - Count myself as intern. diff --git a/data/home.yaml b/data/home.yaml deleted file mode 100644 index e4f601f..0000000 --- a/data/home.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# background image of the landing page -background: "assets/images/default-background.jpg" - -# some information about you -author: - name: "John Doe" - image: "assets/images/default-avatar.svg" - # a summary of what you do - summary: - - I am a Developer - - I work with Go - - I love to work with some fun projects diff --git a/data/projects.yaml b/data/projects.yaml index b362b01..5ec87aa 100644 --- a/data/projects.yaml +++ b/data/projects.yaml @@ -1,58 +1,54 @@ # filter buttons -filters: +buttons: - name: All - tag: "all" + filter: "all" - name: Professional - tag: "professional" + filter: "professional" - name: Academic - tag: "academic" + filter: "academic" - name: Hobby - tag: "hobby" + filter: "hobby" -# my projects +# your projects projects: - - name: Stash - logo: assets/images/logos/stash.png - role: Team Lead + - name: Kubernetes + logo: assets/images/projects/kubernetes.png + role: Contributor timeline: "March 2018 - Present" - repo: https://github.com/stashed/stash - #url: "" - summary: A tool to backup Kubernetes volumes, StatefulSet application, databases etc. - tags: ["professional", "kubernetes", "backup"] + repo: https://github.com/kubernetes/kubernetes # if your project is public repo on github, then provide this link. it will show star count. + #url: "" # if your project is not a public repo but it has a website, or any external details url then provide it here. don't provide "repo" and "url" simultaneously. + summary: Production-Grade Container Scheduling and Management . + tags: ["professional", "kubernetes", "cloud"] - - name: KubeDB - logo: assets/images/logos/kubedb.png + - name: Tensorflow + logo: assets/images/projects/tensorflow.png role: Developer - timeline: "Jan 2019 - Present" - repo: https://github.com/kubedb/cli + timeline: "Jun 2018 - Present" + repo: https://github.com/tensorflow/tensorflow #url: "" - summary: KubeDB by AppsCode simplifies and automates routine database tasks such as provisioning, patching, backup, recovery, failure detection, and repair for various popular databases on private and public clouds. - tags: ["professional", "kubernetes", "database"] + summary: An Open Source Machine Learning Framework for Everyone. + tags: ["professional", "machine-learning","academic"] - - name: Kubed - logo: assets/images/logos/kubed.png - role: Developer - timeline: "Oct 2018 - Dec 2018" - repo: https://github.com/appscode/kubed - #url: "" - summary: A tool to sync Kubernetes ConfigMap, Secret across namespaces and clusters. - tags: ["professional", "kubernetes", "sync"] - - - name: Riverine Vehicle Tracking System with Overload Detection - role: Owner + - name: A sample academic paper + role: Team Lead timeline: "Jan 2017 - Nov 2017" - url: "https://drive.google.com/open?id=0BwCjE-AXb1mjT1ExczBuMjk1aTQ" - summary: - This project aims to develop a monitoring and overload detection system for riverine vehicles. - Here, we have built an Ardunio based GPS tracking system, an ultrasonic sensor based overload - detector. We have also built a mobile based user application as well as an emergency notification - system. + url: "https://www.example.com" + summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Sapiente eius reprehenderit animi suscipit autem eligendi esse amet aliquid error eum. Accusantium distinctio soluta aliquid quas placeat modi suscipit eligendi nisi. tags: ["academic","iot"] + - name: Nocode + logo: assets/images/projects/no-code.png + role: Nothing + timeline: "Oct 2019 - Dec 2019" + repo: https://github.com/kelseyhightower/nocode + #url: "" + summary: The best way to write secure and reliable applications. Write nothing; deploy nowhere. + tags: ["hobby", "fun"] + - name: Toha - logo: assets/images/logos/project-default.png + logo: assets/images/logo.png role: Owner timeline: "Jun 2019 - Present" repo: https://github.com/hossainemruz/toha summary: A Hugo theme for personal portfolio. - tags: ["hobby","hugo","theme"] + tags: ["hobby","hugo","theme","professional"] diff --git a/data/site.yaml b/data/site.yaml new file mode 100644 index 0000000..140a116 --- /dev/null +++ b/data/site.yaml @@ -0,0 +1,40 @@ +# background image of the landing page +background: "assets/images/default-background.jpg" + +# some information about you +author: + name: "John Doe" + image: "assets/images/default-avatar.svg" + # give your some contact information. they will be used in the footer + contactInfo: + email: "johndoe@example.com" + phone: "+0123456789" + # a summary of what you do + summary: + - I am a Developer + - I work with Go + - I love to work with some fun projects + +# Menus of the home page +menus: +- name: Home + url: "#home" + weight: 1 +- name: About + url: "#about" + weight: 2 +- name: Skills + url: "#skills" + weight: 3 +- name: Experiences + url: "#experiences" + weight: 4 +- name: Projects + url: "#projects" + weight: 5 +- name: Recent Posts + url: "#recent-posts" + weight: 6 +- name: Achievements + url: "#achievements" + weight: 7 diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1aa2378..062516a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,14 +13,14 @@ {{ define "content" }}
-
+
- -
{{ partial "helpers/get-author-name.html" .Params }}
+ +
{{ partial "helpers/get-author-name.html" . }}

{{ .Page.Date.Format "January 2, 2006" }}

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eb55359..44c31c9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,9 +4,9 @@
Navigation
@@ -14,7 +14,7 @@
Contact Me
    - {{ range $key,$value:=.Site.Params.contactInfo }} + {{ range $key,$value:=.Site.Data.site.author.contactInfo }}
  • {{ title $key }}: {{ $value }}
  • {{ end }}
@@ -45,7 +45,7 @@
@@ -53,7 +53,7 @@
Powered by Hugo Hugo Logo diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7ef1fc0..e94b9ea 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,5 +12,5 @@ - + diff --git a/layouts/partials/helpers/get-author-image.html b/layouts/partials/helpers/get-author-image.html index 4af1922..1493214 100644 --- a/layouts/partials/helpers/get-author-image.html +++ b/layouts/partials/helpers/get-author-image.html @@ -1,5 +1,9 @@ {{ $authorImage:= "/assets/images/default-avatar.svg"}} -{{ if isset .author "image" }} - {{ $authorImage = .author.image }} +{{ if eq (printf "%T" .Params.author ) "maps.Params" }} + {{ with .Params.author }} + {{ if .image }} + {{ $authorImage = .image }} + {{ end }} + {{ end }} {{ end }} {{ return $authorImage }} diff --git a/layouts/partials/helpers/get-author-name.html b/layouts/partials/helpers/get-author-name.html index 9f36b3e..e15075c 100644 --- a/layouts/partials/helpers/get-author-name.html +++ b/layouts/partials/helpers/get-author-name.html @@ -1,5 +1,9 @@ {{ $authorName:= "John Doe"}} -{{ if isset .author "name" }} - {{ $authorName = .author.name }} +{{ if eq (printf "%T" .Params.author ) "maps.Params" }} + {{ with .Params.author }} + {{ if .name }} + {{ $authorName = .name }} + {{ end }} + {{ end }} {{ end }} {{ return $authorName }} diff --git a/layouts/partials/helpers/get-categories.html b/layouts/partials/helpers/get-categories.html index 9deefe7..f9d39b6 100644 --- a/layouts/partials/helpers/get-categories.html +++ b/layouts/partials/helpers/get-categories.html @@ -1,5 +1,5 @@ {{ $categories:= ""}} -{{ if .categories }} - {{ $categories = delimit .categories "," }} +{{ if .Params.categories }} + {{ $categories = delimit .Params.categories "," }} {{ end }} {{ return $categories }} diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html index 43379b7..72ef4ec 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -1,5 +1,5 @@ {{ $heroImage:= "/assets/images/default-hero.jpg"}} -{{ if .hero }} - {{ $heroImage = .hero }} +{{ if .Params.hero }} + {{ $heroImage = .Params.hero }} {{ end }} {{ return $heroImage }} diff --git a/layouts/partials/helpers/get-profile-image.html b/layouts/partials/helpers/get-profile-image.html deleted file mode 100644 index 62bb03c..0000000 --- a/layouts/partials/helpers/get-profile-image.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ $profileImage:= "/assets/images/default-avatar.svg"}} -{{ if .Site.Data.home.image }} - {{ $profileImage = .Site.Data.home.image }} -{{ end }} -{{ return $profileImage }} diff --git a/layouts/partials/home.html b/layouts/partials/home.html index b2cf236..8e3c9dc 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -1,20 +1,20 @@
-

Hi, I am {{ .Site.Data.home.author.name -}}

+

Hi, I am {{ .Site.Data.site.author.name -}}

diff --git a/layouts/partials/navbar-2.html b/layouts/partials/navbar-2.html index be26994..c0ff089 100644 --- a/layouts/partials/navbar-2.html +++ b/layouts/partials/navbar-2.html @@ -1,7 +1,7 @@