From 2f9e6278ba580dbfa4965bc5b462ceacd7a2b75e Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 30 Dec 2020 16:42:19 -0800 Subject: [PATCH] Use feather for starts. --- themes/vanilla/assets/scss/style.scss | 10 ++++++++++ themes/vanilla/layouts/partials/icon.html | 3 +++ themes/vanilla/layouts/partials/post.html | 2 +- themes/vanilla/static/feather-sprite.svg | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 themes/vanilla/layouts/partials/icon.html create mode 100644 themes/vanilla/static/feather-sprite.svg diff --git a/themes/vanilla/assets/scss/style.scss b/themes/vanilla/assets/scss/style.scss index 50aa88f..59d29f5 100755 --- a/themes/vanilla/assets/scss/style.scss +++ b/themes/vanilla/assets/scss/style.scss @@ -249,3 +249,13 @@ figure { background-color: #ffee99; border-color: #f5c827; } + +.feather { + width: 1rem; + height: 1rem; + stroke: currentColor; + stroke-width: 2; + stroke-linecap: round; + stroke-linejoin: round; + fill: currentColor; +} diff --git a/themes/vanilla/layouts/partials/icon.html b/themes/vanilla/layouts/partials/icon.html new file mode 100644 index 0000000..552d07e --- /dev/null +++ b/themes/vanilla/layouts/partials/icon.html @@ -0,0 +1,3 @@ + + + diff --git a/themes/vanilla/layouts/partials/post.html b/themes/vanilla/layouts/partials/post.html index 055ed72..86a9aeb 100644 --- a/themes/vanilla/layouts/partials/post.html +++ b/themes/vanilla/layouts/partials/post.html @@ -1,5 +1,5 @@
  • - {{ if .Params.favorite }}🟊{{ end }} {{ .Title }} + {{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}

    {{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.

    {{ .Summary }} . . .

  • diff --git a/themes/vanilla/static/feather-sprite.svg b/themes/vanilla/static/feather-sprite.svg new file mode 100644 index 0000000..19a2534 --- /dev/null +++ b/themes/vanilla/static/feather-sprite.svg @@ -0,0 +1 @@ + \ No newline at end of file