Skip to content

Commit

Permalink
Merge pull request #24 from chriswachira/add-site-stack-section
Browse files Browse the repository at this point in the history
feat(hugo): Introduce dynamic & configurable Tech Stack section
  • Loading branch information
chriswachira authored Apr 15, 2024
2 parents 41f28cd + 8096dc4 commit a560226
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "themes/hugo-profile"]
path = themes/hugo-profile
url = https://github.com/gurusabarish/hugo-profile.git
url = https://github.com/chriswachira/hugo-profile.git
14 changes: 13 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ params:
content: "A passionate DevOps & Cloud Infrastructure engineer. I make use of modern cloud technologies to run web applications at scale, fast and secure. All for the users' best experiences."
image: /images/hero.jpeg
bottomImage:
enable: true
enable: false
# roundImage: true # Make hero image circular | default false
button:
enable: true
Expand All @@ -144,6 +144,18 @@ params:
- icon: fab fa-linkedin
url: https://www.linkedin.com/in/chris-wachira

# Tech stack
stack:
enable: true
title: "This site's tech stack"
items:
- name: gohugo
image: "/images/stacks/gohugo.png"
- name: Amazon Web Services (AWS)
image: "/images/stacks/aws-white.png"
- name: HashiCorp Terraform
image: "/images/stacks/terraform-white.png"

# About
about:
enable: true
Expand Down
1 change: 1 addition & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

{{ define "main" }}
{{- partial "sections/hero/index.html" . -}}
{{- partial "sections/tech-stack.html" . -}}
{{- partial "sections/about.html" . -}}
{{- partial "sections/experience.html" . -}}
{{- partial "sections/education.html" . -}}
Expand Down
23 changes: 23 additions & 0 deletions layouts/partials/sections/tech-stack.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ if .Site.Params.stack.enable | default false }}
<section id="tech-stack" class="py-0 py-sm-5">
<div class="container bg-transparent">
<h3 class="text-center bg-transparent">{{ .Site.Params.stack.title }}</h3>
<div class="bg-transparent row justify-content-center px-3 py-5">

{{ range .Site.Params.stack.items }}
<div class="col-sm-12 col-md-12 col-lg-4">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-9 pt-5 image {{ if .Site.Params.animate }}animate{{ end }} px-5 px-md-5 px-lg-0 text-center">
<img src="{{ .image }}"
class="img-thumbnail mx-auto{{ if .Site.Params.hero.roundImage }} rounded-circle{{ end }}"
alt=""
>
</div>
</div>
</div>
{{ end }}

</div>
</div>
</section>
{{ end }}
Binary file added static/images/stacks/aws-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/stacks/github-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/stacks/gohugo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/stacks/terraform-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a560226

Please sign in to comment.