diff --git a/.gitignore b/.gitignore index 8c1250708..700de0f7a 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/archetypes/default.md b/archetypes/default.md index 88b1790a0..e097af48e 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,6 @@ --- -hero: /assets/images/background/sunrise.jpg +hero: /images/background/sunrise.jpg author: name: Md. Emruz Hossain - image: /assets/images/profile-image.jpg + image: /images/profile-image.jpg --- diff --git a/assets/images/404.png b/assets/images/404.png new file mode 100644 index 000000000..c9dd23def Binary files /dev/null and b/assets/images/404.png differ diff --git a/assets/images/404.svg b/assets/images/404.svg new file mode 100644 index 000000000..e2198c433 --- /dev/null +++ b/assets/images/404.svg @@ -0,0 +1 @@ +page not found \ No newline at end of file diff --git a/assets/images/default-avatar.png b/assets/images/default-avatar.png new file mode 100644 index 000000000..a6befb21c Binary files /dev/null and b/assets/images/default-avatar.png differ diff --git a/assets/images/default-background.jpg b/assets/images/default-background.jpg new file mode 100644 index 000000000..b30526b82 Binary files /dev/null and b/assets/images/default-background.jpg differ diff --git a/assets/images/default-hero.jpg b/assets/images/default-hero.jpg new file mode 100644 index 000000000..f13ca4800 Binary files /dev/null and b/assets/images/default-hero.jpg differ diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 000000000..a56bc4293 Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/assets/images/hugo-logo.svg b/assets/images/hugo-logo.svg new file mode 100644 index 000000000..1f6a79ea6 --- /dev/null +++ b/assets/images/hugo-logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/images/inverted-logo.png b/assets/images/inverted-logo.png new file mode 100644 index 000000000..a56bc4293 Binary files /dev/null and b/assets/images/inverted-logo.png differ diff --git a/assets/images/main-logo.png b/assets/images/main-logo.png new file mode 100644 index 000000000..85ba15172 Binary files /dev/null and b/assets/images/main-logo.png differ diff --git a/assets/images/theme-logo.png b/assets/images/theme-logo.png new file mode 100644 index 000000000..a56bc4293 Binary files /dev/null and b/assets/images/theme-logo.png differ diff --git a/exampleSite/assets/images/author/jessica.png b/exampleSite/assets/images/author/jessica.png new file mode 100644 index 000000000..cf6bee7e7 Binary files /dev/null and b/exampleSite/assets/images/author/jessica.png differ diff --git a/exampleSite/assets/images/author/john.png b/exampleSite/assets/images/author/john.png new file mode 100644 index 000000000..208c58a58 Binary files /dev/null and b/exampleSite/assets/images/author/john.png differ diff --git a/exampleSite/static/images/sections/achievements/graduation-cap.jpg b/exampleSite/assets/images/sections/achievements/graduation-cap.jpg similarity index 100% rename from exampleSite/static/images/sections/achievements/graduation-cap.jpg rename to exampleSite/assets/images/sections/achievements/graduation-cap.jpg diff --git a/exampleSite/assets/images/sections/achievements/presenter.jpg b/exampleSite/assets/images/sections/achievements/presenter.jpg new file mode 100644 index 000000000..1f4d70d24 Binary files /dev/null and b/exampleSite/assets/images/sections/achievements/presenter.jpg differ diff --git a/exampleSite/assets/images/sections/achievements/sport.jpg b/exampleSite/assets/images/sections/achievements/sport.jpg new file mode 100644 index 000000000..5104dcfab Binary files /dev/null and b/exampleSite/assets/images/sections/achievements/sport.jpg differ diff --git a/exampleSite/assets/images/sections/achievements/woman-winner.jpg b/exampleSite/assets/images/sections/achievements/woman-winner.jpg new file mode 100644 index 000000000..e77da30cf Binary files /dev/null and b/exampleSite/assets/images/sections/achievements/woman-winner.jpg differ diff --git a/exampleSite/assets/images/sections/projects/kubernetes.png b/exampleSite/assets/images/sections/projects/kubernetes.png new file mode 100644 index 000000000..05fc5e1d2 Binary files /dev/null and b/exampleSite/assets/images/sections/projects/kubernetes.png differ diff --git a/exampleSite/assets/images/sections/projects/no-code.png b/exampleSite/assets/images/sections/projects/no-code.png new file mode 100644 index 000000000..1a9d79dea Binary files /dev/null and b/exampleSite/assets/images/sections/projects/no-code.png differ diff --git a/exampleSite/static/images/sections/projects/tensorflow.png b/exampleSite/assets/images/sections/projects/tensorflow.png similarity index 100% rename from exampleSite/static/images/sections/projects/tensorflow.png rename to exampleSite/assets/images/sections/projects/tensorflow.png diff --git a/exampleSite/assets/images/sections/projects/toha.png b/exampleSite/assets/images/sections/projects/toha.png new file mode 100644 index 000000000..85ba15172 Binary files /dev/null and b/exampleSite/assets/images/sections/projects/toha.png differ diff --git a/exampleSite/assets/images/sections/skills/c++.png b/exampleSite/assets/images/sections/skills/c++.png new file mode 100644 index 000000000..6662f0ea3 Binary files /dev/null and b/exampleSite/assets/images/sections/skills/c++.png differ diff --git a/exampleSite/static/images/sections/skills/cloud.png b/exampleSite/assets/images/sections/skills/cloud.png similarity index 100% rename from exampleSite/static/images/sections/skills/cloud.png rename to exampleSite/assets/images/sections/skills/cloud.png diff --git a/exampleSite/static/images/sections/skills/docker.svg b/exampleSite/assets/images/sections/skills/docker.svg similarity index 100% rename from exampleSite/static/images/sections/skills/docker.svg rename to exampleSite/assets/images/sections/skills/docker.svg diff --git a/exampleSite/assets/images/sections/skills/git.png b/exampleSite/assets/images/sections/skills/git.png new file mode 100644 index 000000000..78bccc499 Binary files /dev/null and b/exampleSite/assets/images/sections/skills/git.png differ diff --git a/exampleSite/assets/images/sections/skills/go.png b/exampleSite/assets/images/sections/skills/go.png new file mode 100644 index 000000000..7af77468c Binary files /dev/null and b/exampleSite/assets/images/sections/skills/go.png differ diff --git a/exampleSite/assets/images/sections/skills/kubernetes.png b/exampleSite/assets/images/sections/skills/kubernetes.png new file mode 100644 index 000000000..05fc5e1d2 Binary files /dev/null and b/exampleSite/assets/images/sections/skills/kubernetes.png differ diff --git a/exampleSite/static/images/sections/skills/linux.png b/exampleSite/assets/images/sections/skills/linux.png similarity index 100% rename from exampleSite/static/images/sections/skills/linux.png rename to exampleSite/assets/images/sections/skills/linux.png diff --git a/exampleSite/assets/images/sections/skills/prometheus.png b/exampleSite/assets/images/sections/skills/prometheus.png new file mode 100644 index 000000000..cdffc7902 Binary files /dev/null and b/exampleSite/assets/images/sections/skills/prometheus.png differ diff --git a/exampleSite/static/images/site/background.jpg b/exampleSite/assets/images/site/background.jpg similarity index 100% rename from exampleSite/static/images/site/background.jpg rename to exampleSite/assets/images/site/background.jpg diff --git a/exampleSite/assets/images/site/favicon.png b/exampleSite/assets/images/site/favicon.png new file mode 100644 index 000000000..5d6cb00aa Binary files /dev/null and b/exampleSite/assets/images/site/favicon.png differ diff --git a/exampleSite/assets/images/site/inverted-logo.png b/exampleSite/assets/images/site/inverted-logo.png new file mode 100644 index 000000000..5d6cb00aa Binary files /dev/null and b/exampleSite/assets/images/site/inverted-logo.png differ diff --git a/exampleSite/assets/images/site/main-logo.png b/exampleSite/assets/images/site/main-logo.png new file mode 100644 index 000000000..ebcc2249e Binary files /dev/null and b/exampleSite/assets/images/site/main-logo.png differ diff --git a/exampleSite/data/bn/sections/skills.yaml b/exampleSite/data/bn/sections/skills.yaml index a18e53977..e9018ea3b 100644 --- a/exampleSite/data/bn/sections/skills.yaml +++ b/exampleSite/data/bn/sections/skills.yaml @@ -13,38 +13,38 @@ section: # Give a summary of you each skill in the summary section. skills: - name: Kubernetes - icon: "/images/sections/skills/kubernetes.png" + logo: "/images/sections/skills/kubernetes.png" summary: "আমি Kubernetes এ অ্যাপ্লিকেশান পরিচালনা করতে সক্ষম । আমার Kubernetes এ CRD এর জন্য কন্ট্রোলার লিখার অভিজ্ঞতা আছে ।" url: "https://kubernetes.io/" - name: Go ডেভেলপমেন্ট - icon: "/images/sections/skills/go.png" + logo: "/images/sections/skills/go.png" summary: "ডেভেলপমেন্টের জন্য প্রধান ভাষা হিসেবে ব্যবহার করছি। টেস্ট যোগ্য, রক্ষণাবেক্ষণ যোগ্য কোড লিখতে সক্ষম।" url: "https://golang.org/" - name: ক্লাউড কম্পিউটিং - icon: "/images/sections/skills/cloud.png" + logo: "/images/sections/skills/cloud.png" summary: "GCP, AWS, Azure গুলোর মত বেশিরভাগ বড় বড় ক্লাউড নিয়ে কাজর অভিজ্ঞতা আছে।" - name: Docker - icon: "/images/sections/skills/docker.svg" + logo: "/images/sections/skills/docker.svg" summary: "বেশির ভাগ প্রোগ্রামেরই Docker কন্টেইনার তৈরি করি। মাল্টি স্টেজ এবং মাল্টি আর্কিটেকচার কন্টেইনার নিয়ে অভিজ্ঞতা আছে।" url: "https://www.docker.com/" - name: Prometheus - icon: "/images/sections/skills/prometheus.png" + logo: "/images/sections/skills/prometheus.png" summary: "Prometheus metrics সেটআপ ও কনফিগার করতে সক্ষম। PromQL, AlertManager নিয়ে অভিজ্ঞতা আছে। Metric exporters লিখাতেও অভিজ্ঞতা আছে।" url: "https://prometheus.io/" - name: লিনাক্স - icon: "/images/sections/skills/linux.png" + logo: "/images/sections/skills/linux.png" summary: "প্রধান অপারেটিং সিস্টেম হিসেবে ব্যবহার করছি। bash/shell scripts লিখতে সক্ষম।" - name: গিট - icon: "/images/sections/skills/git.png" + logo: "/images/sections/skills/git.png" summary: "গিট ভিত্তিক ডেভেলপমেন্টের অভিজ্ঞতা আছে। বেশির ভাগ ক্ষেতরেই GitHub ব্যবহার করি তবে GitLab ব্যবহারেরও অভিজ্ঞতা আছে।" url: "https://git-scm.com/" - name: C++ - icon: "/images/sections/skills/c++.png" + logo: "/images/sections/skills/c++.png" summary: "বেসিক C/C++ প্রোগ্রামিং জানি । প্রব্লেম সল্ভিং এবং কন্টেস্ট এর জন্য ব্যবহার করেছি।" diff --git a/exampleSite/data/en/sections/skills.yaml b/exampleSite/data/en/sections/skills.yaml index 3863d3f42..f9f6867d4 100644 --- a/exampleSite/data/en/sections/skills.yaml +++ b/exampleSite/data/en/sections/skills.yaml @@ -12,38 +12,38 @@ section: # Give a summary of you each skill in the summary section. skills: - name: Kubernetes - icon: "/images/sections/skills/kubernetes.png" + logo: "/images/sections/skills/kubernetes.png" summary: "Capable of deploying, managing application on Kubernetes. Experienced in writing Kubernetes controllers for CRDs." url: "https://kubernetes.io/" - name: Go Development - icon: "/images/sections/skills/go.png" + logo: "/images/sections/skills/go.png" summary: "Using as the main language for professional development. Capable of writing scalable, testable, and maintainable program." url: "https://golang.org/" - name: Cloud Computing - icon: "/images/sections/skills/cloud.png" + logo: "/images/sections/skills/cloud.png" summary: "Worked with most of the major clouds such as GCP, AWS, Azure etc." - name: Docker - icon: "/images/sections/skills/docker.svg" + logo: "/images/sections/skills/docker.svg" summary: "Write most of the programs as dockerized container. Experienced with multi-stage, multi-arch build process." url: "https://www.docker.com/" - name: Prometheus - icon: "/images/sections/skills/prometheus.png" + logo: "/images/sections/skills/prometheus.png" summary: "Capable of setup, configure Prometheus metrics. Experienced with PromQL, AlertManager. Also, experienced with writing metric exporters." url: "https://prometheus.io/" - name: Linux - icon: "/images/sections/skills/linux.png" + logo: "/images/sections/skills/linux.png" summary: "Using as the main operating system. Capable of writing bash/shell scripts." - name: Git - icon: "/images/sections/skills/git.png" + logo: "/images/sections/skills/git.png" summary: "Experienced with git-based development. Mostly, use Github. Also, have experience in working with GitLab." url: "https://git-scm.com/" - name: C++ - icon: "/images/sections/skills/c++.png" + logo: "/images/sections/skills/c++.png" summary: "Know basic C/C++ programming. Used for contest programming and problem solving." diff --git a/exampleSite/data/fr/sections/skills.yaml b/exampleSite/data/fr/sections/skills.yaml index f3b96da23..a6046b684 100644 --- a/exampleSite/data/fr/sections/skills.yaml +++ b/exampleSite/data/fr/sections/skills.yaml @@ -13,38 +13,38 @@ section: # Give a summary of you each skill in the summary section. skills: - name: Kubernetes - icon: "/images/sections/skills/kubernetes.png" + logo: "/images/sections/skills/kubernetes.png" summary: "Capable de déployer, de gérer l'application sur Kubernetes. Expérimenté dans la rédaction de contrôleurs Kubernetes pour les CRD." url: "https://kubernetes.io/" - name: Go - icon: "/images/sections/skills/go.png" + logo: "/images/sections/skills/go.png" summary: "Utiliser comme langue principale pour le développement professionnel. Capable d'écrire des programmes évolutifs, testables et maintenables." url: "https://golang.org/" - name: Cloud Computing - icon: "/images/sections/skills/cloud.png" + logo: "/images/sections/skills/cloud.png" summary: "A travaillé avec la plupart des principaux nuages tels que GCP, AWS, Azure, etc." - name: Docker - icon: "/images/sections/skills/docker.svg" + logo: "/images/sections/skills/docker.svg" summary: "Inscrivez la plupart des programmes en tant que conteneur déchargé. Expérimenté dans le processus de construction en plusieurs étapes et en plusieurs arcs." url: "https://www.docker.com/" - name: Prometheus - icon: "/images/sections/skills/prometheus.png" + logo: "/images/sections/skills/prometheus.png" summary: "Capable d'installation, de configurer les métriques de Prometheus. Expérimenté avec PromQL, AlertManager. Expérimenté également dans la rédaction d'exportateurs de métriques." url: "https://prometheus.io/" - name: Linux - icon: "/images/sections/skills/linux.png" + logo: "/images/sections/skills/linux.png" summary: "Utilisé comme système d'exploitation principal. Capable d'écrire des scripts bash/shell." - name: Git - icon: "/images/sections/skills/git.png" + logo: "/images/sections/skills/git.png" summary: "Expérimenté dans le développement basé sur les GIT. Surtout, utilisez Github. Avoir également une expérience de travail avec GitLab." url: "https://git-scm.com/" - name: C++ - icon: "/images/sections/skills/c++.png" + logo: "/images/sections/skills/c++.png" summary: "Connaître les bases de la programmation C/C++. Utilisé pour la programmation de concours et la résolution de problèmes." diff --git a/exampleSite/data/id/sections/skills.yaml b/exampleSite/data/id/sections/skills.yaml index 90cde9e0d..47fd2bc91 100644 --- a/exampleSite/data/id/sections/skills.yaml +++ b/exampleSite/data/id/sections/skills.yaml @@ -12,38 +12,38 @@ section: # Give a summary of you each skill in the summary section. skills: - name: Kubernetes - icon: "/images/sections/skills/kubernetes.png" + logo: "/images/sections/skills/kubernetes.png" summary: "Mampu menerapkan, mengelola aplikasi di Kubernetes. Berpengalaman dalam menulis pengontrol Kubernetes untuk CRD." url: "https://kubernetes.io/" - name: Go Development - icon: "/images/sections/skills/go.png" + logo: "/images/sections/skills/go.png" summary: "Menggunakan sebagai bahasa utama untuk pengembangan profesional. Mampu menulis program yang dapat diskalakan, dapat diuji, dan dipelihara." url: "https://golang.org/" - name: Cloud Computing - icon: "/images/sections/skills/cloud.png" + logo: "/images/sections/skills/cloud.png" summary: "Worked with most of the major clouds such as GCP, AWS, Azure etc." - name: Docker - icon: "/images/sections/skills/docker.svg" + logo: "/images/sections/skills/docker.svg" summary: "Tulis sebagian besar program sebagai kontainer docker. Berpengalaman dengan proses pembangunan multi-tahap dan multi-arch." url: "https://www.docker.com/" - name: Prometheus - icon: "/images/sections/skills/prometheus.png" + logo: "/images/sections/skills/prometheus.png" summary: "Mampu mengatur, mengkonfigurasi metrik Prometheus. Berpengalaman dengan PromQL, AlertManager. Juga, berpengalaman dengan eksportir menulis metrik." url: "https://prometheus.io/" - name: Linux - icon: "/images/sections/skills/linux.png" + logo: "/images/sections/skills/linux.png" summary: "Menggunakan sebagai sistem operasi utama. Mampu menulis skrip bash / shell." - name: Git - icon: "/images/sections/skills/git.png" + logo: "/images/sections/skills/git.png" summary: "Berpengalaman dengan pengembangan berbasis git. Kebanyakan, gunakan Github. Juga, miliki pengalaman bekerja dengan GitLab." url: "https://git-scm.com/" - name: C++ - icon: "/images/sections/skills/c++.png" + logo: "/images/sections/skills/c++.png" summary: "Ketahui pemrograman C / C ++ dasar. Digunakan untuk pemrograman kontes dan pemecahan masalah." diff --git a/exampleSite/data/it/sections/skills.yaml b/exampleSite/data/it/sections/skills.yaml index f07a904cb..dcf430515 100644 --- a/exampleSite/data/it/sections/skills.yaml +++ b/exampleSite/data/it/sections/skills.yaml @@ -12,38 +12,38 @@ section: # Fornisci una sintesi delle tue competenze per la sezione di sintesi. skills: - name: Kubernetes - icon: "/images/sections/skills/kubernetes.png" + logo: "/images/sections/skills/kubernetes.png" summary: "Capacità di distribuzione e gestione di applicazioni su Kubernetes. Esperienza nello sviluppo di controller CRD per Kubernetes." url: "https://kubernetes.io/" - name: Sviluppo Go - icon: "/images/sections/skills/go.png" + logo: "/images/sections/skills/go.png" summary: "Utilizzato come linguaggio principale per lo sviluppo professionale. Capacità di scrivere programmi scalabili, testabili e manutenibili." url: "https://golang.org/" - name: Cloud Computing - icon: "/images/sections/skills/cloud.png" + logo: "/images/sections/skills/cloud.png" summary: "Ha lavorato con la maggior parte dei principali sistemi cloud: GCP, AWS, Azure etc." - name: Docker - icon: "/images/sections/skills/docker.svg" + logo: "/images/sections/skills/docker.svg" summary: "Scittura di programmi come container dockerized. Esperienza con processi multi-stage e multi-arch." url: "https://www.docker.com/" - name: Prometheus - icon: "/images/sections/skills/prometheus.png" + logo: "/images/sections/skills/prometheus.png" summary: "Capacità di impostare e configurare metriche Prometheus. Esperienza con PromQL, AlertManager." url: "https://prometheus.io/" - name: Linux - icon: "/images/sections/skills/linux.png" + logo: "/images/sections/skills/linux.png" summary: "Utilizzato come principale sistema operativo. Capacità di scrivere script bash/shell." - name: Git - icon: "/images/sections/skills/git.png" + logo: "/images/sections/skills/git.png" summary: "Esperienza con lo sviluppo git, ed in particolare usando Github. Esperienza anche con GitLab." url: "https://git-scm.com/" - name: C++ - icon: "/images/sections/skills/c++.png" + logo: "/images/sections/skills/c++.png" summary: "Conoscenza della programmazione di base C/C++, utilizzata per vari progetti di programmazione e problem solving." diff --git a/layouts/404.html b/layouts/404.html index 941ecc16d..6b3738685 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -7,9 +7,19 @@ {{ end }} {{ define "content" }} +{{/* not found image */}} +{{ $notFoundImage := "/images/404.png" }} + +{{/* 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 "1500x" }} +{{ end }} +{{ $notFoundImage = $notFoundImage.RelPermalink}} +
- +

404

The page you are looking for is not there yet.

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dee6fe3fa..566679231 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -35,13 +35,13 @@
-
+
- +
{{ partial "helpers/get-author-name.html" . }}

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

diff --git a/layouts/partials/cards/project.html b/layouts/partials/cards/project.html index 50722279d..6b4f9592f 100644 --- a/layouts/partials/cards/project.html +++ b/layouts/partials/cards/project.html @@ -8,7 +8,13 @@
{{ if .logo }} - {{ .name }} + + {{ $logoImage:= resources.Get .logo}} + {{ if $logoImage }} + {{ $logoImage := $logoImage.Fit "24x24" }} + + {{ .name }} + {{ end }} {{ end }}
{{ .name }}
diff --git a/layouts/partials/cards/skill.html b/layouts/partials/cards/skill.html index 21070b63f..cba650686 100644 --- a/layouts/partials/cards/skill.html +++ b/layouts/partials/cards/skill.html @@ -2,8 +2,15 @@
- {{ if .icon }} - {{ .name }} + {{ if .logo }} + {{ $logoImage := resources.Get .logo }} + + {{/* svg don't support "Fit" operation */}} + {{ if ne $logoImage.MediaType.SubType "svg" }} + {{ $logoImage := $logoImage.Fit "24x24" }} + {{ end }} + + {{ .name }} {{ end }}
{{ .name }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index baefb6fc5..6afe2bac5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -16,6 +16,23 @@ {{ end }} {{ end }} +{{/* footer logos */}} +{{ $themeLogo := "/images/theme-logo.png" }} +{{ $hugoLogo := "/images/hugo-logo.svg" }} + +{{/* resize the logos. don't resize svg because it is not supported */}} +{{ $themeLogo:= resources.Get $themeLogo}} +{{ if and $themeLogo (ne $themeLogo.MediaType.SubType "svg") }} + {{ $themeLogo = $themeLogo.Resize "32x" }} +{{ end }} +{{ $themeLogo = $themeLogo.RelPermalink}} + +{{ $hugoLogo:= resources.Get $hugoLogo}} +{{ if and $hugoLogo (ne $hugoLogo.MediaType.SubType "svg")}} + {{ $hugoLogo = $hugoLogo.Resize "32x" }} +{{ end }} +{{ $hugoLogo = $hugoLogo.RelPermalink}} +