diff options
author | Derek Severin <severinderek@gmail.com> | 2019-03-18 13:27:40 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-03-18 13:27:40 +0300 |
commit | 6d1ee8f44d5fc3444260e9b07876632348d95e7f (patch) | |
tree | 2a9f0b7a5f3a7679fb2ca299b3173487b6720184 /layouts/_default/li.html | |
parent | d63e6dc350baf387c4cc9b7c1ced6c85f62e1993 (diff) |
Modified project list elements
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> |