Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

⚡️ : use webp for certification icons

+6 -4
+2 -2
hugo.toml
··· 38 38 front_page_content = ["posts", "projects", "books"] 39 39 40 40 certifications = [ 41 - {Name = "CKAD: Certified Kubernetes Application Developer", Issuer= "The Linux Foundation", Issued= "2023-12", Expires= "2026-12", Credentials= "https://www.credly.com/badges/cdd863d0-5136-44e1-a393-8fa2dd736fa2/public_url", Logo= "/ckad-certified-kubernetes-application-developer.png"}, 42 - {Name = "HashiCorp Certified: Terraform Associate (003)", Issuer= "HashiCorp", Issued= "2023-11", Expires= "2025-11", Credentials= "https://www.credly.com/badges/c8e35084-2c3d-443f-96fd-76a46b237360/public_url", Logo= "/hashicorp-certified-terraform-associate-003.png"} 41 + {Name = "CKAD: Certified Kubernetes Application Developer", Issuer= "The Linux Foundation", Issued= "2023-12", Expires= "2026-12", Credentials= "https://www.credly.com/badges/cdd863d0-5136-44e1-a393-8fa2dd736fa2/public_url", Logo= "/ckad-certified-kubernetes-application-developer.webp"}, 42 + {Name = "HashiCorp Certified: Terraform Associate (003)", Issuer= "HashiCorp", Issued= "2023-11", Expires= "2025-11", Credentials= "https://www.credly.com/badges/c8e35084-2c3d-443f-96fd-76a46b237360/public_url", Logo= "/hashicorp-certified-terraform-associate-003.webp"} 43 43 ] 44 44 45 45 plausible = true
+4 -2
layouts/partials/sidebar/title.html
··· 14 14 <ul class="certifications"> 15 15 {{ range .Site.Params.certifications }} 16 16 <li> 17 - <a href="{{.Credentials}}" target="_blank"> 18 - <img src="{{ .Logo }}" alt="{{.Name}}" max-width="50%"/> 17 + {{ $cred_logo := resources.Get .Logo }} 18 + {{ $cred_logo := $cred_logo.Resize "96x96 webp"}} 19 + <a href="{{.Credentials }}" target="_blank"> 20 + <img src="{{ $cred_logo.Permalink }}" alt="{{.Name}}" max-width="50%"/> 19 21 {{ .Name}} 20 22 </a> 21 23 </li>
static/ckad-certified-kubernetes-application-developer.png assets/credentials/ckad-certified-kubernetes-application-developer.png
static/hashicorp-certified-terraform-associate-003.png assets/credentials/hashicorp-certified-terraform-associate-003.png