From 1371f239a3784a92468ab35183b1a97886f23d82 Mon Sep 17 00:00:00 2001 From: Aroy-Art <39088602+Aroy-Art@users.noreply.github.com> Date: Mon, 9 Aug 2021 17:09:15 +0200 Subject: [PATCH] Added portfolio template --- layouts/_default/portfolio.html | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 layouts/_default/portfolio.html diff --git a/layouts/_default/portfolio.html b/layouts/_default/portfolio.html new file mode 100644 index 0000000..f90f30d --- /dev/null +++ b/layouts/_default/portfolio.html @@ -0,0 +1,57 @@ +{{ define "main" }} + +{{ partial "navigation.html" . }} + +{{ $data := index site.Data }} + +{{ if $data.portfolio.portfolio.enable }} +{{ with $data.portfolio.portfolio }} +{{"" | safeHTML}} +
+
+
+
+ {{"" | safeHTML}} +
+

{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }} + {{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}

+
+
+ {{"" | safeHTML}} +
+
+ {{ range .portfolio_categories }} + {{ $text_color := .text_color}} +
+ +
+ {{"" | safeHTML}} +
+

+ {{ with .name }} {{ index (split . " ") 0 | safeHTML }} {{ end }} + {{ with .name }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}

+
+
+ {{"" | safeHTML}} +
+ +
+
+ {{ $category := .name }} + {{ range .portfolio_items }} + + + + {{ end }} +
+
+
+ {{ end }} +
+ +
+{{"" | safeHTML}} +{{ end }} +{{ end }} + +{{ end }} \ No newline at end of file