From 97b4dd36c3962e3eba96810ba4d825606569a08a Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 14 Jan 2023 13:44:20 -0300 Subject: Changed projects shortcodes --- layouts/shortcodes/personal-projects.html | 6 ++++++ layouts/shortcodes/work-projects.html | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 layouts/shortcodes/personal-projects.html create mode 100644 layouts/shortcodes/work-projects.html (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/personal-projects.html b/layouts/shortcodes/personal-projects.html new file mode 100644 index 0000000..721c84d --- /dev/null +++ b/layouts/shortcodes/personal-projects.html @@ -0,0 +1,6 @@ +
+{{- range $index, $key := .Site.Params.Projects.Personal -}} +
{{ $key.name }}
+
{{ $key.description }}
+{{- end -}} +
diff --git a/layouts/shortcodes/work-projects.html b/layouts/shortcodes/work-projects.html new file mode 100644 index 0000000..537673f --- /dev/null +++ b/layouts/shortcodes/work-projects.html @@ -0,0 +1,9 @@ +{{- $client := .Get "client" -}} +
+ {{- range $index, $key := .Site.Params.Projects.Work -}} + {{- if eq $client $key.client -}} +
{{ $key.name }}
+
{{ $key.description }}
+ {{- end -}} + {{- end -}} +
-- cgit v1.2.3