Browse Source

Use feather for starts.

donations
Danila Fedorin 11 months ago
parent
commit
2f9e6278ba
  1. 10
      themes/vanilla/assets/scss/style.scss
  2. 3
      themes/vanilla/layouts/partials/icon.html
  3. 2
      themes/vanilla/layouts/partials/post.html
  4. 1
      themes/vanilla/static/feather-sprite.svg

10
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;
}

3
themes/vanilla/layouts/partials/icon.html

@ -0,0 +1,3 @@
<svg class="feather">
<use xlink:href="/feather-sprite.svg#{{ . }}"/>
</svg>

After

Width:  |  Height:  |  Size: 81 B

2
themes/vanilla/layouts/partials/post.html

@ -1,5 +1,5 @@
<li>
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}🟊{{ end }} {{ .Title }}</a>
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}</a>
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p class="post-preview">{{ .Summary }} . . .</p>
</li>

1
themes/vanilla/static/feather-sprite.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 53 KiB

Loading…
Cancel
Save