diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid index 5bd2144a..e03a8b18 100644 --- a/src/_includes/now.liquid +++ b/src/_includes/now.liquid @@ -1,6 +1,12 @@ --- layout: default --- +{% capture css %} + {% render "../assets/styles/pages/now.css" %} +{% endcapture %} + {{ content }} {% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %} {% render "partials/now/media-grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8 %} diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index 72722018..08240b72 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -1,4 +1,10 @@ {% if data.size > 0 %} + {% capture css %} + {% render "../../../assets/styles/widgets/media-grid.css" %} + {% endcapture %} + {% assign media = data | normalizeMedia %}

{% tablericon icon title %} diff --git a/src/_includes/partials/now/progress-bar.liquid b/src/_includes/partials/now/progress-bar.liquid index 71a85feb..2969c421 100644 --- a/src/_includes/partials/now/progress-bar.liquid +++ b/src/_includes/partials/now/progress-bar.liquid @@ -1,4 +1,10 @@ {% if percentage %} +{% capture css %} + {% render "../../../assets/styles/widgets/media-grid.css" %} +{% endcapture %} +
diff --git a/src/_includes/partials/paginator.liquid b/src/_includes/partials/paginator.liquid index bbb14296..02081718 100644 --- a/src/_includes/partials/paginator.liquid +++ b/src/_includes/partials/paginator.liquid @@ -1,3 +1,9 @@ +{% capture css %} + {% render "../../assets/styles/widgets/paginator.css" %} +{% endcapture %} +