Skip to content

Commit

Permalink
feat: rss icon
Browse files Browse the repository at this point in the history
  • Loading branch information
maolonglong committed Jan 10, 2024
1 parent 4b5a0da commit 90fe6a2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
19 changes: 18 additions & 1 deletion assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,27 @@ ul.blog-posts > li {
display: flex;
}

ul.blog-posts > li > span {
ul.blog-posts > li span {
flex: 0 0 130px;
color: var(--text-light);
}

nav#TableOfContents > ul {
margin-block-start: 0;
}

main > p:first-child time {
color: var(--text-light);
}

.icon {
vertical-align: sub;
padding-right: 0.25rem;
display: inline-block;
width: 1em;
height: 1.3em;
margin-right: 0.2rem;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
11 changes: 10 additions & 1 deletion layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@
{{ if eq $currentPage .Page }}class="current"{{ end }}
>{{ .Name }}</a
>
{{ end }} <a href="{{ absURL "index.xml" }}">RSS</a>
{{ end }}
<a href="{{ absURL "index.xml" }}">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 448 512">
<!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
<path
d="M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
/>
</svg>
RSS
</a>

0 comments on commit 90fe6a2

Please sign in to comment.