From e3e6b739df65535055b24d6a56f8ec4c74fe2a51 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Thu, 27 Jan 2022 14:22:07 +0100 Subject: [PATCH] fixes and improvements of single page (child cards) and footer --- layouts/_default/single.html | 8 ++-- layouts/partials/footer.html | 88 ++++++++++++++++++------------------ 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 762517e..07ae732 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -29,19 +29,17 @@ {{ if and (not .Site.Params.hideChildArticles) (eq .Site.Params.showChildArticles "cards") -}}
-
- {{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}} - {{ range $related }} + {{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}} + {{ range sort (sort $related "Date" "desc") "Weight" }} {{ partial "card.html" . }} {{ end }} -
{{ end }}
    - {{ with .NextInSection }} + {{ with .NextInSection }}
  • {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9a0ed08..f1ea6bd 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,51 +2,53 @@
    -
    - {{ with .Site.Params.copyright -}} - - {{ .name }} - {{- end }} -
    +
      + {{ with .Site.Params.copyright -}} +
    • + + {{ .name }} +
    • + {{- end }} + {{ with .Site.Params.email -}} + + {{- end }} + {{ with .Site.Params.github -}} + + {{- end }} + {{ with .Site.Params.sourcehut -}} + + {{- end }} +
    -
    - {{ with .Site.Params.builtBy -}} - {{ .name }} - {{- end }} -
    +
    + {{ with .Site.Params.builtBy -}} + {{ .name }} + {{- end }} +
    -
      - {{ with .Site.Params.legal -}} -
    • - {{ .name }} -
    • - {{- end }} - {{ with .Site.Params.privacy -}} -
    • - {{ .name }} -
    • - {{- end }} - {{ with .Site.Params.github -}} - - {{- end }} - {{ with .Site.Params.sourcehut -}} - - {{- end }} - {{ with .Site.Params.email -}} - - {{- end }} -
    +
      + {{ with .Site.Params.legal -}} +
    • + {{ .name }} +
    • + {{- end }} + {{ with .Site.Params.privacy -}} +
    • + {{ .name }} +
    • + {{- end }} +