Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/projects/projects.html')
-rw-r--r--layouts/partials/projects/projects.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/partials/projects/projects.html b/layouts/partials/projects/projects.html
new file mode 100644
index 0000000..7cc04a5
--- /dev/null
+++ b/layouts/partials/projects/projects.html
@@ -0,0 +1,34 @@
+{{ $content_type := .Params.content_type }}
+{{if $content_type}}
+{{ $t := .Site.GetPage $content_type }}
+{{ $rscPages := $t.Resources.ByType "page"}}
+
+{{if gt (len $rscPages) 0}}
+<div class="projects row w-100">
+ <div class="col w-100">
+ {{range $page := sort $rscPages "Params.date" "desc"}}
+ <div class="project row w-100">
+ <div class="section-1 w-100">
+ <span class="project-title">
+ {{$page.Params.title}}
+ </span>
+ </div>
+
+ {{ $links := $page.Params.links }}
+ {{ if $links }}
+ <div class="section-2 w-100">
+ {{ if $links.website }}
+ <a class="main_color text-decoration-none rounded " href="{{$links.git}}" target="_blank">website</a>
+ {{end}}
+ </div>
+ {{end}}
+
+
+ </div>
+ {{end}}
+
+
+ </div>
+ {{end}}
+</div>
+{{end}} \ No newline at end of file