mark links visited when read

This commit is contained in:
Ryan Stafford 2024-04-28 11:41:14 -04:00
parent 4483159c2f
commit 77abd06a2c
3 changed files with 8 additions and 5 deletions

View file

@ -32,8 +32,8 @@ input[type=text], input[type=password], textarea {
.title a {
color: #dedede;
}
.title a:visited {
color: #a6a6a6
.title a:visited, .title.visited a {
color: #a6a6a6 !important;
}
.message b {
color: #ddd;

View file

@ -115,6 +115,9 @@ summary {
font-size: 10px;
margin-bottom: 2px;
}
.post .title.visited a {
color: #551A8B;
}
.activity .post .title a {
font-size: medium;
}
@ -1049,8 +1052,8 @@ body.dark {
.dark .title a {
color: #dedede;
}
.dark .title a:visited {
color: #a6a6a6
.dark .title a:visited, .dark .title.visited a {
color: #a6a6a6 !important;
}
.dark .message b {
color: #ddd;

View file

@ -33,7 +33,7 @@
</div>
{{ end }}
<div class="entry">
<div class="title">
<div class="title{{ if .Read}} visited{{end}}">
<a class="url"
href="{{ if .Post.URL.IsValid }}{{ .Post.URL }}{{ else }}/{{ .State.Host }}/post/{{ .Post.ID }}{{ end }}"
{{ if .State.LinksInNewWindow }} target="_blank" {{ end }}>