Skip to content

Commit

Permalink
Link titles
Browse files Browse the repository at this point in the history
  • Loading branch information
nipafx committed Apr 23, 2024
1 parent 9117a39 commit 28d0029
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion nox.zone/src/main/java/zone/nox/components/PostBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ public record Style(Classes block, Classes index, Classes title, Classes date, C
font-weight: bold;
}
a.title {
color: white;
}
a.title:hover {
color: white;
text-decoration: none;
}
a.title:visited {
color: white;
}
.date {
grid-area: date;
font-size: var(--font-size-small);
Expand All @@ -56,7 +67,7 @@ public record Style(Classes block, Classes index, Classes title, Classes date, C
public Element composeSingle() {
return div.classes(STYLE.block).children(
a.classes(STYLE.index).href(post.slug().toString()).text("#%03d".formatted(post.index())),
span.classes(STYLE.title).text(post.title()),
a.classes(STYLE.title).href(post.slug().toString()).text(post.title()),
span.classes(STYLE.date).text(format(post.date())),
a.classes(STYLE.more).href(post.slug().toString()).text("More >>")
);
Expand Down

0 comments on commit 28d0029

Please sign in to comment.