diff --git a/layouts/partials/cards/skill-popup.html b/layouts/partials/cards/skill-popup.html new file mode 100644 index 0000000..4ca6e81 --- /dev/null +++ b/layouts/partials/cards/skill-popup.html @@ -0,0 +1,56 @@ +{{ if .skill.popup }} + + {{ $skillID := replace (lower .skill.name) " " "-" }} + {{ if .skill.id }} + {{ $skillID = .skill.id }} + {{ end }} + + {{ $logoImage := "" }} + {{ if .skill.logo }} + {{ $logoImage = resources.Get .skill.logo }} + {{/* svg don't support "Fit" operation */}} + {{ if ne $logoImage.MediaType.SubType "svg" }} + {{ $logoImage = $logoImage.Fit "24x24" }} + {{ end }} + {{ end }} +
{{ .summary | markdownify }}
+ + {{ if or .popup .icons }} +