From f174e5e546015eb846b819e1898e5c82e53ff203 Mon Sep 17 00:00:00 2001 From: Wivik <48727868+Wivik@users.noreply.github.com> Date: Sun, 20 Aug 2023 21:46:20 +0200 Subject: [PATCH] feat: better display --- layouts/_default/baseof.html | 2 ++ layouts/_default/list.html | 11 +++++------ layouts/_default/single.html | 10 +++++++--- layouts/partials/header.html | 5 +++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8f28f01..ec7d589 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,6 +17,8 @@ {{ $css := resources.Get "css/style.css" }} + {{ $css_custom := resources.Get "css/custom.css" }} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9673eb9..6c1c09d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,9 +9,9 @@ {{ range .Pages }} {{ $default_img := resources.Get "img/default.png" }} -
- {{ if .Params.band }} - {{ .Params.band }} +
+ {{ if .Params.artist }} + {{ .Params.artist }} {{ end }} {{ .Title }} {{ if .Params.genres }} @@ -29,13 +29,12 @@
  • Year : {{ .Params.year }}
  • {{ end }} {{ if .Params.format }} -
  • Format : {{ .Params.format }}
  • +
  • Disc format : {{ .Params.format }} {{ if .Params.number_of_discs }} ({{ .Params.number_of_discs }} discs){{ end }}
  • {{ end }}
    {{ end }} - -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0efd949..8ec1b14 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,8 +8,8 @@
    -

    {{ .Page.Title }}

    - {{ .Params.band }} +

    {{ .Page.Title }}

    + {{ .Params.artist }} {{ if .Params.description }}

    {{ .Params.description | markdownify }} @@ -41,8 +41,12 @@

  • Year : {{ .Params.year }}
  • {{ end }} {{ if .Params.format }} -
  • Disc format : {{ .Params.format }}
  • +
  • Disc format : {{ .Params.format }}{{ if .Params.number_of_discs }} ({{ .Params.number_of_discs }} discs){{ end }}
  • {{ end }} + {{ if .Params.condition }} +
  • Condition : {{ .Params.condition }}
  • + {{ end }} +
    diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 30dec40..a87f165 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,8 +3,9 @@

    {{ .Site.Title }}

    \ No newline at end of file