Use feather for starts.
This commit is contained in:
parent
17e0fbc6fb
commit
2f9e6278ba
|
@ -249,3 +249,13 @@ figure {
|
||||||
background-color: #ffee99;
|
background-color: #ffee99;
|
||||||
border-color: #f5c827;
|
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
Normal file
3
themes/vanilla/layouts/partials/icon.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg class="feather">
|
||||||
|
<use xlink:href="/feather-sprite.svg#{{ . }}"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 81 B |
|
@ -1,5 +1,5 @@
|
||||||
<li>
|
<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-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
|
||||||
<p class="post-preview">{{ .Summary }} . . .</p>
|
<p class="post-preview">{{ .Summary }} . . .</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
1
themes/vanilla/static/feather-sprite.svg
Normal file
1
themes/vanilla/static/feather-sprite.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 53 KiB |
Loading…
Reference in New Issue
Block a user