Skip to content

Commit

Permalink
Blog layout: streamline and fix styling RSS button (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Aug 29, 2022
1 parent 219c2db commit 888f148
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 12 additions & 8 deletions assets/scss/_blog.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// Blog related styles.

.td-blog {
.td-rss-button {
position: absolute;
top: 5.5rem;
right: 1rem;
z-index: 22;
}
.td-rss-button {
@extend .btn;
@extend .btn-lg;
@extend .-bg-orange;

position: absolute;
right: 1rem;
z-index: 22;

display: none;
@extend .d-lg-block;
}
}
4 changes: 2 additions & 2 deletions layouts/blog/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</aside>
<main class="col-12 col-md-9 col-xl-8 pl-md-5 pr-md-4" role="main">
{{ with .CurrentSection.OutputFormats.Get "rss" -}}
<a class="btn btn-lg -bg-orange td-rss-button d-none d-lg-block" href="{{ .Permalink | safeURL }}" target="_blank">
RSS <i class="fa-solid fa-rss"></i>
<a class="td-rss-button" title="RSS" href="{{ .Permalink | safeURL }}" target="_blank" rel="noopener">
<i class="fa-solid fa-rss" aria-hidden="true"></i>
</a>
{{ end -}}
{{ block "main" . }}{{ end }}
Expand Down

0 comments on commit 888f148

Please sign in to comment.