From 71c6694c0981c9feeb4f81d547928881904ecdf8 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 13 Apr 2023 15:54:53 +0300 Subject: [PATCH] Add dynamic work experience --- data/en/sections/about.toml | 2 +- data/fi/sections/about.toml | 2 +- layouts/partials/sections/about.html | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/data/en/sections/about.toml b/data/en/sections/about.toml index db1543c..8152cff 100644 --- a/data/en/sections/about.toml +++ b/data/en/sections/about.toml @@ -1,6 +1,6 @@ designation = "Software developer" resume = "files/cv-eng.pdf" -summary = "I am a passionate software engineer with 2 years of working experience. I also have a passion for open source, Linux, and servers." +summary = "I am a passionate software engineer with $workingExperienceYears years of working experience. I also have a passion for open source, Linux, and servers." [section] name = "About" diff --git a/data/fi/sections/about.toml b/data/fi/sections/about.toml index 006ab41..48e3071 100644 --- a/data/fi/sections/about.toml +++ b/data/fi/sections/about.toml @@ -1,6 +1,6 @@ designation = "Ohjelmistokehittäjä" resume = "files/cv-fin.pdf" -summary = "Olen innokas ohjelmistokehittäjä kahden vuoden työkokemuksella. Tykkään paljon myös avoimesta lähdekoodista, Linuxista ja servereistä." +summary = "Olen innokas ohjelmistokehittäjä $workingExperienceYears vuoden työkokemuksella. Tykkään paljon myös avoimesta lähdekoodista, Linuxista ja servereistä." [section] name = "Yleistä" diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index 4cba260..c77d74d 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -23,8 +23,8 @@ {{ end }}

- {{ .summary | markdownify }} -

+ {{ replace .summary "$workingExperienceYears" (sub now.Year 2020) | markdownify }} +