diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/li.html | 34 | ||||
-rw-r--r-- | layouts/partials/pages/lists.html | 2 |
2 files changed, 29 insertions, 7 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> diff --git a/layouts/partials/pages/lists.html b/layouts/partials/pages/lists.html index b628998..8ef461e 100644 --- a/layouts/partials/pages/lists.html +++ b/layouts/partials/pages/lists.html @@ -33,7 +33,7 @@ {{/* Sort the list */}} {{ partial "utils/ordered-list.html" (dict "list" .Pages "params" .Params "scratch" .Scratch) }} - <ul> + <ul class="project-item-list"> {{ range (.Scratch.Get "list") }} {{ .Render "li" }} {{ end }} |