From 28f170f5f62604cd5b138659e26b9bea5c0e3640 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 18 Mar 2023 14:54:27 +0800 Subject: [PATCH] Update class names of several components --- CHANGELOG.adoc | 9 +++++++++ assets/scss/layout.scss | 4 ++-- layouts/partials/components.html | 2 +- layouts/partials/components/post-meta.html | 2 +- layouts/partials/footer.html | 4 ++-- layouts/partials/header.html | 2 +- 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 46d1b1d..3cd9f54 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -20,6 +20,15 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version == Unreleased +=== Updated + +* Update class names of several components. + +** `.icon` has been updated to `.site__icon`. +** `.list` has been updated to `.site__list`. + + + == [0.6.0] - 2023-03-16 diff --git a/assets/scss/layout.scss b/assets/scss/layout.scss index e60297d..edc45fe 100644 --- a/assets/scss/layout.scss +++ b/assets/scss/layout.scss @@ -18,13 +18,13 @@ footer[aria-label="Site footer"] { } } -.icon { +.site__icon { height: 1rem; width: 1rem; fill: currentColor; } -.list { +.site__list { display: inline-flex; align-items: baseline; flex-flow: row wrap; diff --git a/layouts/partials/components.html b/layouts/partials/components.html index 1d824cc..1e228ce 100644 --- a/layouts/partials/components.html +++ b/layouts/partials/components.html @@ -19,7 +19,7 @@ {{- define "partials/components/icon.html" }} {{- $icon := . }} {{- $res := resources.ExecuteAsTemplate (printf $icon.output $icon.id) $icon.id (resources.Get $icon.template) }} - + {{- end }} diff --git a/layouts/partials/components/post-meta.html b/layouts/partials/components/post-meta.html index 7791a2a..4d99fcf 100644 --- a/layouts/partials/components/post-meta.html +++ b/layouts/partials/components/post-meta.html @@ -3,7 +3,7 @@ */ -}} {{- if or .PublishDate .Lastmod }} {{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }} -