diff options
Diffstat (limited to 'layouts/_default/li.html')
-rw-r--r-- | layouts/_default/li.html | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 8532cec..1c4368b 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -1,8 +1,30 @@ <li class="project-item"> - <a href="{{.Permalink}}">{{ .Title }}</a> - {{ with .Params.subtitle }} - <p> - {{ . | markdownify }} - </p> - {{ end }} + + <a href="{{.Permalink}}" class="project-item-box"> + {{ $logos := .Resources.Match "logos/*" }} + {{ if gt (len $logos) 0 }} + {{ $image := index $logos 0 }} + <figure class="no-photoswipe"> + <img class="project-item-logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}"> + </figure> + {{ end }} + + <div> + {{ with .Title }} + <div class="project-title"> + {{ . }} + </div> + {{ end }} + + {{ with .Params.subtitle }} + <div class="project-subtitle"> + {{ . }} + </div> + {{ end }} + </div> + + <div class="project-item-box-highlight"> + </div> + </a> + </li> |