Skip to content

Commit

Permalink
Rss feed button
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed Jan 11, 2024
1 parent 8e25bda commit f92d250
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
21 changes: 20 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,23 @@ footer {

li {
margin-bottom: 10px;
}
}

.site-header {
display: flex;
justify-content: space-between;
align-items: center;
}

.btn {
color: white !important;
display: inline-block;
font-size: 0.75rem;
padding: 3px 9px 3px 9px;
text-align: center;
text-decoration: none !important;
}

.btn-rss {
background-color: #b9501f;
}
9 changes: 7 additions & 2 deletions src/web.gr
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ class Web {
return ["body", [], [
["div", ["class", "body-wrapper"], [
["div", ["class", "body-content"], [
["h1", [], [
["a", ["href", "/"], "Blog"],
["div", ["class", "site-header"], [
["h1", [], [
["a", ["href", "/"], "Blog"],
]],
["a", ["href", "/feed.xml", "class", "btn btn-rss", "target", "_blank"], [
"RSS Feed",
]],
]],
] + content + [
this.footer(),
Expand Down

0 comments on commit f92d250

Please sign in to comment.