{{ define "main" }}

{{ .Title | emojify }}

{{ .Content | emojify }} {{ range $.Site.Data.works }}

{{ .title }}

{{ readFile "data/works/realworld.md" | markdownify }}
{{ range .projects }} {{ if .title }}

{{ .title }}

{{ if .description }}
{{ readFile (print "data/works/" .description ".md") | markdownify }}
{{ end }} {{ end }}
{{ range .apps }} {{ $borders := dict "green" "border-green-500" "blue" "border-blue-500" "orange" "border-orange-500" "black" "border-black dark:border-white" "red" "border-red-500" "teal" "border-teal-500" "primary" "border-purple-500" }}
{{ if .date }}
{{ partial "badge.html" (print "Date : " .date) }}
{{ end }}
{{ readFile (print "data/works/" .name ".md") | markdownify }}
{{ partial "button.html" (dict "text" (partial "icon.html" "github") "href" (print "https://github.com/" .repo) "color" .color) }} {{ if .demo }} {{ partial "button.html" (dict "text" "Demo" "href" .demo "color" .color) }} {{ end }} {{ if .docs }} {{ partial "button.html" (dict "text" "Docs" "href" .docs "color" .color) }} {{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}