From 6d1ee8f44d5fc3444260e9b07876632348d95e7f Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Mon, 18 Mar 2019 17:27:40 +0700 Subject: Modified project list elements --- exampleSite/config.toml | 1 + layouts/_default/li.html | 34 ++++++++++++++--- layouts/partials/pages/lists.html | 2 +- static/css/theme.css | 79 +++++++++++++++++++++++++++++++++++++-- 4 files changed, 105 insertions(+), 11 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bac565b..646e52e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,6 +2,7 @@ # GLOBAL SITE SETTINGS # Parameters used by HUGO to configure the site's global settings. +preserveTaxonomyNames = "true" baseurl = "https://example.org/" languageCode = "en-us" 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 @@
  • - {{ .Title }} - {{ with .Params.subtitle }} -

    - {{ . | markdownify }} -

    - {{ end }} + + + {{ $logos := .Resources.Match "logos/*" }} + {{ if gt (len $logos) 0 }} + {{ $image := index $logos 0 }} +
    + +
    + {{ end }} + +
    + {{ with .Title }} +
    + {{ . }} +
    + {{ end }} + + {{ with .Params.subtitle }} +
    + {{ . }} +
    + {{ end }} +
    + +
    +
    +
    +
  • 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) }} -